Skip to content

Commit d855eab

Browse files
committedMay 12, 2015
Prevent a crash if simplify tool is accidentally used for non-vector layer
1 parent 56ada16 commit d855eab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/app/qgsmaptoolsimplify.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ void QgsMapToolSimplify::canvasReleaseEvent( QMouseEvent * e )
233233
if ( e->button() != Qt::LeftButton )
234234
return;
235235

236+
if ( !currentVectorLayer() )
237+
return;
238+
236239
delete mSelectionRubberBand;
237240
mSelectionRubberBand = 0;
238241

0 commit comments

Comments
 (0)
Please sign in to comment.