From ff2cf2e63a8203d9ab92f4df177a6e955ea957c1 2012-05-22 13:38:44 From: sauimone Date: 2012-05-22 13:38:44 Subject: [PATCH] scaleDomain fix in groupedbarchart --- diff --git a/src/barchart/qgroupedbarseries.cpp b/src/barchart/qgroupedbarseries.cpp index ced1518..6919c27 100644 --- a/src/barchart/qgroupedbarseries.cpp +++ b/src/barchart/qgroupedbarseries.cpp @@ -80,7 +80,7 @@ void QGroupedBarSeriesPrivate::scaleDomain(Domain& domain) int tickYCount(domain.tickYCount()); qreal x = q->categoryCount(); - qreal y = maxCategorySum(); + qreal y = max(); minX = qMin(minX, x); minY = qMin(minY, y); maxX = qMax(maxX, x);