@@ -47,7 +47,7 QVector<QRectF> GroupedBarChartItem::calculateLayout() | |||
|
47 | 47 | qreal scaleY = (height / rangeY); |
|
48 | 48 | qreal scaleX = (width / rangeX); |
|
49 | 49 | qreal categoryWidth = width / categoryCount; |
|
50 | qreal barWidth = categoryWidth / setCount - categoryWidth * m_series->d_func()->barMargin(); | |
|
50 | qreal barWidth = categoryWidth / setCount - (categoryWidth / setCount) * m_series->d_func()->barMargin(); | |
|
51 | 51 | |
|
52 | 52 | int itemIndex(0); |
|
53 | 53 | for (int category = 0; category < categoryCount; category++) { |
General Comments 0
You need to be logged in to leave comments.
Login now