Skip to content

Commit

Permalink
[Geometry checker] Don't recollect errors with empty recheck list
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 23, 2017
1 parent 15b5da8 commit f507246
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/analysis/vector/geometry_checker/qgsgeometrychecker.cpp
Expand Up @@ -179,11 +179,17 @@ bool QgsGeometryChecker::fixError( QgsGeometryCheckError *error, int method, boo
{
if ( check->getCheckType() == QgsGeometryCheck::LayerCheck )
{
check->collectErrors( recheckErrors, mMessages, nullptr, recheckAreaFeatures );
if ( !recheckAreaFeatures.isEmpty() )
{
check->collectErrors( recheckErrors, mMessages, nullptr, recheckAreaFeatures );
}
}
else
{
check->collectErrors( recheckErrors, mMessages, nullptr, recheckFeatures );
if ( !recheckFeatures.isEmpty() )
{
check->collectErrors( recheckErrors, mMessages, nullptr, recheckFeatures );
}
}
}

Expand Down

0 comments on commit f507246

Please sign in to comment.