diff --git a/src/barchart/qbarseries.cpp b/src/barchart/qbarseries.cpp index 34c342c..f6ffddc 100644 --- a/src/barchart/qbarseries.cpp +++ b/src/barchart/qbarseries.cpp @@ -414,7 +414,7 @@ void QBarSeriesPrivate::scaleDomain(Domain& domain) qreal y = max(); minX = qMin(minX, x) - 0.5; minY = qMin(minY, y); - maxX = qMax(maxX, x) + 0.5; + maxX = qMax(maxX, x) - 0.5; maxY = qMax(maxY, y); tickXCount = x+1;