summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/charts/axis/polarchartaxis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charts/axis/polarchartaxis.cpp b/src/charts/axis/polarchartaxis.cpp
index cf900c3c..b37041fb 100644
--- a/src/charts/axis/polarchartaxis.cpp
+++ b/src/charts/axis/polarchartaxis.cpp
@@ -83,7 +83,8 @@ void PolarChartAxis::updateLayout(QVector<qreal> &layout)
// axes lingering in wrong position compared to series plot before animation can kick in.
// Note that the position mismatch still exists even with this update, but it will be
// far less ugly.
- updateGeometry();
+ if (ChartAxisElement::layout().size() != 0)
+ updateGeometry();
}
if (diff > 0)