Skip to content
Permalink
Browse files

[Geometry checker] Don't recollect errors with empty recheck list

  • Loading branch information
manisandro committed Oct 19, 2017
1 parent 15b5da8 commit f507246d3bcf6b9f5595980cbece605c88ab0f62
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/analysis/vector/geometry_checker/qgsgeometrychecker.cpp
@@ -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 );
}
}
}

0 comments on commit f507246

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