Skip to content

Commit 0b02912

Browse files
committed
Fix crash in snapping index generation
1 parent 0be74e5 commit 0b02912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsmapcanvassnappingutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void QgsMapCanvasSnappingUtils::prepareIndexStarting( int count )
3939
void QgsMapCanvasSnappingUtils::prepareIndexProgress( int index )
4040
{
4141
mProgress->setValue( index );
42-
if ( index == mProgress->maximum() )
42+
if ( mProgress && index == mProgress->maximum() )
4343
{
4444
delete mProgress;
4545
mProgress = 0;

0 commit comments

Comments
 (0)