diff options
Diffstat (limited to 'stats/statsaxis.cpp')
-rw-r--r-- | stats/statsaxis.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stats/statsaxis.cpp b/stats/statsaxis.cpp index 5c4f0403e..7af41c14b 100644 --- a/stats/statsaxis.cpp +++ b/stats/statsaxis.cpp @@ -159,6 +159,9 @@ void StatsAxis::setSize(double sizeIn) { size = sizeIn; + // Ticks (and labels) should probably be reused. For now, clear them. + for (Tick &tick: ticks) + view.deleteChartItem(tick.item); labels.clear(); ticks.clear(); updateLabels(); |