Skip to content
Permalink
Browse files

Prevent a crash if simplify tool is accidentally used for non-vector …

…layer
  • Loading branch information
wonder-sk committed May 12, 2015
1 parent 56ada16 commit d855eabc3386334d9040d82f0f0aebd87f30dc40
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgsmaptoolsimplify.cpp
@@ -233,6 +233,9 @@ void QgsMapToolSimplify::canvasReleaseEvent( QMouseEvent * e )
if ( e->button() != Qt::LeftButton )
return;

if ( !currentVectorLayer() )
return;

delete mSelectionRubberBand;
mSelectionRubberBand = 0;

0 comments on commit d855eab

Please sign in to comment.
You can’t perform that action at this time.