Fix double delete in QgsMeasureTool

The rubber bands are owned by the canvas - so we shouldn't
be deleting them here.
This commit is contained in:
Nyall Dawson 2018-05-02 18:11:09 +10:00
parent 70aad93a61
commit 6749c8dde4
2 changed files with 0 additions and 10 deletions

View File

@ -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;

View File

@ -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