Skip to content
Permalink
Browse files

Fix crash in snapping index generation

  • Loading branch information
m-kuhn committed Sep 14, 2015
1 parent 0be74e5 commit 0b02912da3c6060b3d6f8f8383287e76ab27635c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsmapcanvassnappingutils.cpp
@@ -39,7 +39,7 @@ void QgsMapCanvasSnappingUtils::prepareIndexStarting( int count )
void QgsMapCanvasSnappingUtils::prepareIndexProgress( int index )
{
mProgress->setValue( index );
if ( index == mProgress->maximum() )
if ( mProgress && index == mProgress->maximum() )
{
delete mProgress;
mProgress = 0;

0 comments on commit 0b02912

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