Skip to content
Permalink
Browse files
revert case 4. Was removed in #41424
  • Loading branch information
lbartoletti committed May 17, 2021
1 parent 1db3e54 commit 40b635f0e94185a2c2b8acc544555827e38f01e0
Showing with 2 additions and 9 deletions.
  1. +2 −9 src/app/vertextool/qgsvertextool.cpp
@@ -2316,15 +2316,8 @@ void QgsVertexTool::applyEditsToLayers( QgsVertexTool::VertexEdits &edits )
id.insert( it2.key() );
ignoreFeatures.insert( layer, id );
int avoidIntersectionsReturn = featGeom.avoidIntersections( avoidIntersectionsLayers, ignoreFeatures );
switch ( avoidIntersectionsReturn )
{
case 3:
emit messageEmitted( tr( "The feature has been added, but at least one geometry intersected is invalid and cannot be fixed automatically. The geometry added may overlap another geometry. You should fix geometries." ), Qgis::Warning );
break;
case 4:
emit messageEmitted( tr( "The feature has been added, but at least one geometry intersected is invalid and has been modified to perform the operation. You should fix geometries." ), Qgis::Warning );
break;
}
if ( avoidIntersectionsReturn == 3 )
emit messageEmitted( tr( "At least one geometry intersected is invalid. These geometries must be manually repaired." ), Qgis::Warning );
}
layer->changeGeometry( it2.key(), featGeom );
}

0 comments on commit 40b635f

Please sign in to comment.