Skip to content

Commit

Permalink
Fix crash on exit (Fix #13369)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 16, 2015
1 parent 12c0abc commit 0826290
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsmaptoolcapture.cpp
Expand Up @@ -382,7 +382,8 @@ void QgsMapToolCapture::stopCapturing()

mCapturing = false;
mCaptureCurve.clear();
currentVectorLayer()->triggerRepaint();
if ( currentVectorLayer() )
currentVectorLayer()->triggerRepaint();
}

void QgsMapToolCapture::deleteTempRubberBand()
Expand Down

1 comment on commit 0826290

@slarosa
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m-kuhn thanks!

Please sign in to comment.