Skip to content
Permalink
Browse files

Fix double delete in QgsMeasureTool

The rubber bands are owned by the canvas - so we shouldn't
be deleting them here.
  • Loading branch information
nyalldawson committed May 3, 2018
1 parent 70aad93 commit 6749c8dde450700398718ae3036de101e7a21212
Showing with 0 additions and 10 deletions.
  1. +0 −8 src/app/qgsmeasuretool.cpp
  2. +0 −2 src/app/qgsmeasuretool.h
@@ -56,14 +56,6 @@ QgsMeasureTool::QgsMeasureTool( QgsMapCanvas *canvas, bool measureArea )
connect( canvas, &QgsMapCanvas::destinationCrsChanged, this, &QgsMeasureTool::updateSettings );
}

QgsMeasureTool::~QgsMeasureTool()
{
delete mDialog;
delete mRubberBand;
delete mRubberBandPoints;
}


QVector<QgsPointXY> QgsMeasureTool::points()
{
return mPoints;
@@ -35,8 +35,6 @@ class APP_EXPORT QgsMeasureTool : public QgsMapTool

QgsMeasureTool( QgsMapCanvas *canvas, bool measureArea );

~QgsMeasureTool() override;

Flags flags() const override { return QgsMapTool::AllowZoomRect; }

//! returns whether measuring distance or area

0 comments on commit 6749c8d

Please sign in to comment.
You can’t perform that action at this time.