fix topological edition when mid segment is snapped [vertex tool]

This commit is contained in:
Loïc Bartoletti 2020-10-05 16:03:04 +02:00
parent 430031f23f
commit 4d50f005c7

View File

@ -2134,7 +2134,7 @@ void QgsVertexTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocato
applyEditsToLayers( edits );
if ( QgsProject::instance()->topologicalEditing() && mapPointMatch->hasEdge() && mapPointMatch->layer() )
if ( QgsProject::instance()->topologicalEditing() && ( mapPointMatch->hasEdge() || mapPointMatch->hasMiddleSegment() ) && mapPointMatch->layer() )
{
// topo editing: add vertex to existing segments when moving/adding a vertex to such segment.
// this requires that the snapping match is to a segment and the segment layer's CRS