Skip to content

Commit

Permalink
Fix crash in topology checker plugin after a check is canceled
Browse files Browse the repository at this point in the history
during index preparation
  • Loading branch information
nyalldawson committed Oct 5, 2019
1 parent 5101386 commit 606bcd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/topology/topolTest.cpp
Expand Up @@ -1363,8 +1363,7 @@ QgsSpatialIndex *topolTest::createIndex( QgsVectorLayer *layer, const QgsRectang

if ( testCanceled() )
{
delete index;
return nullptr;
return index;
}

if ( f.hasGeometry() )
Expand Down

0 comments on commit 606bcd3

Please sign in to comment.