mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
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:
parent
70aad93a61
commit
6749c8dde4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user