@@ -208,13 +208,23 void Domain::move(int dx,int dy,const QSizeF& size) | |||
|
208 | 208 | |
|
209 | 209 | void Domain::handleAxisXChanged(qreal min,qreal max,int tickXCount,bool niceNumbers) |
|
210 | 210 | { |
|
211 |
m_niceNumbers=niceNumbers |
|
|
211 | if (niceNumbers && m_niceNumbers != niceNumbers) { | |
|
212 | m_niceNumbers = niceNumbers; | |
|
213 | //force recalculation | |
|
214 | m_minX = 0; | |
|
215 | m_maxX = 0; | |
|
216 | } | |
|
212 | 217 | setRange(min,max,m_minY, m_maxY,tickXCount,m_tickYCount); |
|
213 | 218 | } |
|
214 | 219 | |
|
215 | 220 | void Domain::handleAxisYChanged(qreal min,qreal max,int tickYCount,bool niceNumbers) |
|
216 | 221 | { |
|
217 |
m_niceNumbers=niceNumbers |
|
|
222 | if (niceNumbers && m_niceNumbers != niceNumbers) { | |
|
223 | m_niceNumbers = niceNumbers; | |
|
224 | //force recalculation | |
|
225 | m_minY = 0; | |
|
226 | m_maxY = 0; | |
|
227 | } | |
|
218 | 228 | setRange(m_minX, m_maxX, min, max,m_tickXCount,tickYCount); |
|
219 | 229 | } |
|
220 | 230 |
General Comments 0
You need to be logged in to leave comments.
Login now