Skip to content

Commit

Permalink
Do not crash if maptool is not set (got this from a test run)
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 6, 2019
1 parent 8ffdb4a commit e1de2e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsmaptool.cpp
Expand Up @@ -34,7 +34,8 @@ QgsMapTool::QgsMapTool( QgsMapCanvas *canvas )

QgsMapTool::~QgsMapTool()
{
mCanvas->unsetMapTool( this );
if ( mCanvas )
mCanvas->unsetMapTool( this );
}


Expand Down

0 comments on commit e1de2e0

Please sign in to comment.