1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Added missing cleanup

This commit is contained in:
Martin Tůma 2018-06-28 08:36:11 +02:00
parent 8e713a1f06
commit ec5ad67a3e

View File

@ -73,6 +73,7 @@ GraphView::~GraphView()
delete _slider;
delete _info;
delete _grid;
delete _message;
for (int i = 0; i < _graphs.count(); i++)
delete _graphs[i];
@ -274,7 +275,7 @@ void GraphView::redraw(const QSizeF &size)
qreal sx, sy;
if (_visible.isEmpty() || _bounds.isNull()) {
if (_bounds.isNull()) {
removeItem(_xAxis);
removeItem(_yAxis);
removeItem(_slider);