diff options
Diffstat (limited to 'stats/statsgrid.cpp')
-rw-r--r-- | stats/statsgrid.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stats/statsgrid.cpp b/stats/statsgrid.cpp index f8ad22c14..f29069341 100644 --- a/stats/statsgrid.cpp +++ b/stats/statsgrid.cpp @@ -20,7 +20,10 @@ void StatsGrid::updatePositions() // We probably should be smarter and reuse existing lines. // For now, this does it. + for (auto &line: lines) + view.deleteChartItem(line); lines.clear(); + if (xtics.empty() || ytics.empty()) return; |