Skip to content
Permalink
Browse files

[Geometry checker] If fixing an error produced changes, treat newly d…

…etected errors which are the same as the error fixed as actual new errors
  • Loading branch information
manisandro committed Jul 14, 2016
1 parent 41ce527 commit 2f6be7a504fb2ef55871dc946585ad4d62bcfa06
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/plugins/geometry_checker/qgsgeometrychecker.cpp
@@ -155,14 +155,17 @@ bool QgsGeometryChecker::fixError( QgsGeometryCheckError* error, int method )
}
}

// Remove just-fixed error from newly-found errors (needed in case error was fixed with "no change")
Q_FOREACH ( QgsGeometryCheckError* recheckErr, recheckErrors )
// Remove just-fixed error from newly-found errors if no changes occurred (needed in case error was fixed with "no change")
if ( changes.isEmpty() )
{
if ( recheckErr->isEqual( error ) )
Q_FOREACH ( QgsGeometryCheckError* recheckErr, recheckErrors )
{
recheckErrors.removeAll( recheckErr );
delete recheckErr;
break;
if ( recheckErr->isEqual( error ) )
{
recheckErrors.removeAll( recheckErr );
delete recheckErr;
break;
}
}
}

0 comments on commit 2f6be7a

Please sign in to comment.
You can’t perform that action at this time.