##// END OF EJS Templates
fixed bug in barseries scaledomain with negative values
sauimone -
r1781:507cf09b14cf
parent child
Show More
@@ -92,10 +92,9 void QHorizontalBarSeriesPrivate::scaleDomain(Domain& domain)
92 92 qreal maxY(domain.maxY());
93 93
94 94 qreal y = categoryCount();
95 qreal x = max();
96 minX = qMin(minX, x);
95 minX = qMin(minX, min());
97 96 minY = qMin(minY, - (qreal)0.5);
98 maxX = qMax(maxX, x);
97 maxX = qMax(maxX, max());
99 98 maxY = qMax(maxY, y - (qreal)0.5);
100 99
101 100 domain.setRange(minX,maxX,minY,maxY);
@@ -94,11 +94,10 void QBarSeriesPrivate::scaleDomain(Domain& domain)
94 94 qreal maxY(domain.maxY());
95 95
96 96 qreal x = categoryCount();
97 qreal y = max();
98 97 minX = qMin(minX, - (qreal)0.5);
99 minY = qMin(minY, y);
98 minY = qMin(minY, min());
100 99 maxX = qMax(maxX, x - (qreal)0.5);
101 maxY = qMax(maxY, y);
100 maxY = qMax(maxY, max());
102 101
103 102 domain.setRange(minX,maxX,minY,maxY);
104 103 }
General Comments 0
You need to be logged in to leave comments. Login now