Skip to content

Commit

Permalink
fix: apply requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Koyaani authored and github-actions[bot] committed Nov 30, 2022
1 parent 8cd2db2 commit f75030d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -2418,7 +2418,7 @@ void QgsVertexTool::applyEditsToLayers( QgsVertexTool::VertexEdits &edits )
break;
}
// if the geometry has been changed
if ( avoidIntersectionsReturn != 4 )
if ( avoidIntersectionsReturn != 1 && avoidIntersectionsReturn != 4 )
{
layer->changeGeometry( it2.key(), featGeom );
edits[layer][it2.key()] = featGeom;
Expand Down
1 change: 1 addition & 0 deletions src/core/geometry/qgsgeometryeditutils.h
Expand Up @@ -73,6 +73,7 @@ class QgsGeometryEditUtils
* \param avoidIntersectionsLayers list of layers to check for intersections
* \param haveInvalidGeometry returns true if at least one geometry intersected is invalid. In this case, the algorithm may not work and return the same geometry as the input. You must fix your intersecting geometries.
* \param ignoreFeatures map of layer to feature id of features to ignore
* \return the modified geometry or a null unique_ptr if the \a geom polygon doesn't intersect any geometry in \a avoidIntersectionsLayers
*/
static std::unique_ptr< QgsAbstractGeometry > avoidIntersections( const QgsAbstractGeometry &geom,
const QList<QgsVectorLayer *> &avoidIntersectionsLayers,
Expand Down

0 comments on commit f75030d

Please sign in to comment.