Skip to content

Commit

Permalink
Fix crash in snapping index generation
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 14, 2015
1 parent 0be74e5 commit 0b02912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvassnappingutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b02912

Please sign in to comment.