@@ -187,8 +187,10 void CartesianChartAxis::setGeometry(const QRectF &axis, const QRectF &grid) | |||||
187 | m_gridRect = grid; |
|
187 | m_gridRect = grid; | |
188 | setAxisGeometry(axis); |
|
188 | setAxisGeometry(axis); | |
189 |
|
189 | |||
190 | if (isEmpty()) |
|
190 | if (isEmpty()) { | |
|
191 | prepareGeometryChange(); | |||
191 | return; |
|
192 | return; | |
|
193 | } | |||
192 |
|
194 | |||
193 | QVector<qreal> layout = calculateLayout(); |
|
195 | QVector<qreal> layout = calculateLayout(); | |
194 | updateLayout(layout); |
|
196 | updateLayout(layout); |
@@ -38,8 +38,10 void PolarChartAxis::setGeometry(const QRectF &axis, const QRectF &grid) | |||||
38 | Q_UNUSED(grid); |
|
38 | Q_UNUSED(grid); | |
39 | setAxisGeometry(axis); |
|
39 | setAxisGeometry(axis); | |
40 |
|
40 | |||
41 | if (isEmpty()) |
|
41 | if (isEmpty()) { | |
|
42 | prepareGeometryChange(); | |||
42 | return; |
|
43 | return; | |
|
44 | } | |||
43 |
|
45 | |||
44 | QVector<qreal> layout = calculateLayout(); |
|
46 | QVector<qreal> layout = calculateLayout(); | |
45 | updateLayout(layout); |
|
47 | updateLayout(layout); |
General Comments 0
You need to be logged in to leave comments.
Login now