Skip to content

Commit 8cefc65

Browse files
committedOct 23, 2017
[Geometry checker] Don't recheck any features if fixed error resulted in no changes
1 parent e089b3b commit 8cefc65

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed
 

‎src/analysis/vector/geometry_checker/qgsgeometrychecker.cpp

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ bool QgsGeometryChecker::fixError( QgsGeometryCheckError *error, int method, boo
113113
return false;
114114
}
115115

116-
if ( error->resolutionMessage() == tr( "No action" ) )
116+
// If nothing was changed, stop here
117+
if ( changes.isEmpty() )
117118
{
118119
return true;
119120
}
@@ -188,20 +189,6 @@ bool QgsGeometryChecker::fixError( QgsGeometryCheckError *error, int method, boo
188189
}
189190
}
190191

191-
// Remove just-fixed error from newly-found errors if no changes occurred (needed in case error was fixed with "no change")
192-
if ( changes.isEmpty() )
193-
{
194-
for ( QgsGeometryCheckError *recheckErr : recheckErrors )
195-
{
196-
if ( recheckErr->isEqual( error ) )
197-
{
198-
recheckErrors.removeAll( recheckErr );
199-
delete recheckErr;
200-
break;
201-
}
202-
}
203-
}
204-
205192
// Go through error list, update other errors of the checked feature
206193
for ( QgsGeometryCheckError *err : mCheckErrors )
207194
{

0 commit comments

Comments
 (0)
Please sign in to comment.