Skip to content
Permalink
Browse files

[Geometry checker] Fix incomplete QgsGeometryOverlapCheckError::handl…

…eChanges
  • Loading branch information
manisandro committed Oct 19, 2017
1 parent 9218afd commit 5de0c8037a37a27bbd418db0c6fbff8f03a2c5ec
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/analysis/vector/geometry_checker/qgsgeometryoverlapcheck.h
@@ -49,6 +49,19 @@ class ANALYSIS_EXPORT QgsGeometryOverlapCheckError : public QgsGeometryCheckErro
return err && other->layerId() == layerId() && other->featureId() == featureId() && err->overlappedFeature() == overlappedFeature();
}

bool handleChanges( const QgsGeometryCheck::Changes &changes ) override
{
if ( !QgsGeometryCheckError::handleChanges( changes ) )
{
return false;
}
if ( changes.value( mOverlappedFeature.first ).keys().contains( mOverlappedFeature.second ) )
{
return false;
}
return true;
}

virtual QString description() const override { return QApplication::translate( "QgsGeometryTypeCheckError", "Overlap with %1:%2" ).arg( mOverlappedFeature.first ).arg( mOverlappedFeature.second ); }

private:

0 comments on commit 5de0c80

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