Skip to content
Permalink
Browse files
Fix topologicalpoints bis
  • Loading branch information
lbartoletti committed May 17, 2021
1 parent 7f27cb2 commit d3dac1c5cfe16220ec4bced571066f54c36e8c0b
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/app/vertextool/qgsvertextool.cpp
@@ -2200,6 +2200,21 @@ void QgsVertexTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocato
}
}

if ( QgsProject::instance()->topologicalEditing() && QgsProject::instance()->avoidIntersectionsMode() != QgsProject::AvoidIntersectionsMode::AllowIntersections )
{
const auto editKeys = edits.keys();
for ( QgsVectorLayer *layer : editKeys )
{
const auto editGeom = edits[layer].values();
for ( QgsGeometry g : editGeom )
{
QgsGeometry pts = g.convertToType( QgsWkbTypes::PointGeometry, true );
for ( const auto &p : pts.asMultiPoint() )
QgsMapToolEdit::addTopologicalPoints( pts.asMultiPoint() );
}
}
}

updateLockedFeatureVertices();
if ( mVertexEditor )
mVertexEditor->updateEditor( mLockedFeature.get() );

0 comments on commit d3dac1c

Please sign in to comment.