Skip to content

Commit 2acf7a8

Browse files
committedSep 14, 2015
Really fix snapping indexing crash
1 parent 0b02912 commit 2acf7a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/gui/qgsmapcanvassnappingutils.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ void QgsMapCanvasSnappingUtils::prepareIndexStarting( int count )
3838

3939
void QgsMapCanvasSnappingUtils::prepareIndexProgress( int index )
4040
{
41+
if ( !mProgress )
42+
return;
43+
4144
mProgress->setValue( index );
42-
if ( mProgress && index == mProgress->maximum() )
45+
if ( index == mProgress->maximum() )
Code has comments. Press enter to view.
4346
{
4447
delete mProgress;
4548
mProgress = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.