Skip to content

Commit 0826290

Browse files
committed
Fix crash on exit (Fix #13369)
1 parent 12c0abc commit 0826290

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/qgsmaptoolcapture.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ void QgsMapToolCapture::stopCapturing()
382382

383383
mCapturing = false;
384384
mCaptureCurve.clear();
385-
currentVectorLayer()->triggerRepaint();
385+
if ( currentVectorLayer() )
386+
currentVectorLayer()->triggerRepaint();
386387
}
387388

388389
void QgsMapToolCapture::deleteTempRubberBand()

0 commit comments

Comments
 (0)