Skip to content

Commit

Permalink
Prevent a crash if simplify tool is accidentally used for non-vector …
Browse files Browse the repository at this point in the history
…layer
  • Loading branch information
wonder-sk committed May 12, 2015
1 parent 56ada16 commit d855eab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsmaptoolsimplify.cpp
Expand Up @@ -233,6 +233,9 @@ void QgsMapToolSimplify::canvasReleaseEvent( QMouseEvent * e )
if ( e->button() != Qt::LeftButton )
return;

if ( !currentVectorLayer() )
return;

delete mSelectionRubberBand;
mSelectionRubberBand = 0;

Expand Down

0 comments on commit d855eab

Please sign in to comment.