@@ -92,10 +92,9 void QHorizontalBarSeriesPrivate::scaleDomain(Domain& domain) | |||||
92 | qreal maxY(domain.maxY()); |
|
92 | qreal maxY(domain.maxY()); | |
93 |
|
93 | |||
94 | qreal y = categoryCount(); |
|
94 | qreal y = categoryCount(); | |
95 | qreal x = max(); |
|
95 | minX = qMin(minX, min()); | |
96 | minX = qMin(minX, x); |
|
|||
97 | minY = qMin(minY, - (qreal)0.5); |
|
96 | minY = qMin(minY, - (qreal)0.5); | |
98 | maxX = qMax(maxX, x); |
|
97 | maxX = qMax(maxX, max()); | |
99 | maxY = qMax(maxY, y - (qreal)0.5); |
|
98 | maxY = qMax(maxY, y - (qreal)0.5); | |
100 |
|
99 | |||
101 | domain.setRange(minX,maxX,minY,maxY); |
|
100 | domain.setRange(minX,maxX,minY,maxY); |
@@ -94,11 +94,10 void QBarSeriesPrivate::scaleDomain(Domain& domain) | |||||
94 | qreal maxY(domain.maxY()); |
|
94 | qreal maxY(domain.maxY()); | |
95 |
|
95 | |||
96 | qreal x = categoryCount(); |
|
96 | qreal x = categoryCount(); | |
97 | qreal y = max(); |
|
|||
98 | minX = qMin(minX, - (qreal)0.5); |
|
97 | minX = qMin(minX, - (qreal)0.5); | |
99 |
minY = qMin(minY, |
|
98 | minY = qMin(minY, min()); | |
100 | maxX = qMax(maxX, x - (qreal)0.5); |
|
99 | maxX = qMax(maxX, x - (qreal)0.5); | |
101 |
maxY = qMax(maxY, |
|
100 | maxY = qMax(maxY, max()); | |
102 |
|
101 | |||
103 | domain.setRange(minX,maxX,minY,maxY); |
|
102 | domain.setRange(minX,maxX,minY,maxY); | |
104 | } |
|
103 | } |
General Comments 0
You need to be logged in to leave comments.
Login now