Skip to content

Commit

Permalink
Fix crash on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 25, 2020
1 parent f231b4a commit a2fb472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion python/gui/auto_generated/qgsmaptoolextent.sip.in
Expand Up @@ -10,7 +10,6 @@




class QgsMapToolExtent : QgsMapTool
{
%Docstring
Expand Down
5 changes: 2 additions & 3 deletions src/gui/qgsmaptoolextent.h
Expand Up @@ -20,8 +20,7 @@
#include "qgspointxy.h"
#include "qgsrubberband.h"
#include "qgis_gui.h"

#include <memory>
#include "qobjectuniqueptr.h"

class QgsMapCanvas;

Expand Down Expand Up @@ -76,7 +75,7 @@ class GUI_EXPORT QgsMapToolExtent : public QgsMapTool

void drawExtent();

std::unique_ptr< QgsRubberBand > mRubberBand;
QObjectUniquePtr< QgsRubberBand > mRubberBand;

QgsPointXY mStartPoint;
QgsPointXY mEndPoint;
Expand Down

0 comments on commit a2fb472

Please sign in to comment.