File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/analysis/vector/geometry_checker Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,19 @@ class ANALYSIS_EXPORT QgsGeometryOverlapCheckError : public QgsGeometryCheckErro
49
49
return err && other->layerId () == layerId () && other->featureId () == featureId () && err->overlappedFeature () == overlappedFeature ();
50
50
}
51
51
52
+ bool handleChanges ( const QgsGeometryCheck::Changes &changes ) override
53
+ {
54
+ if ( !QgsGeometryCheckError::handleChanges ( changes ) )
55
+ {
56
+ return false ;
57
+ }
58
+ if ( changes.value ( mOverlappedFeature .first ).keys ().contains ( mOverlappedFeature .second ) )
59
+ {
60
+ return false ;
61
+ }
62
+ return true ;
63
+ }
64
+
52
65
virtual QString description () const override { return QApplication::translate ( " QgsGeometryTypeCheckError" , " Overlap with %1:%2" ).arg ( mOverlappedFeature .first ).arg ( mOverlappedFeature .second ); }
53
66
54
67
private:
You can’t perform that action at this time.
0 commit comments