Skip to content
Permalink
Browse files

[FEATURE] vertextool : chained add vertex at endpoint

This makes it possible to digitizle multiple points at
once when extending a line feature with the vertex tool
  • Loading branch information
olivierdalang committed May 9, 2019
1 parent fe39b26 commit 0b2a9258d7eb4bfd1339eedf95280e97c2f51b1b
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/app/vertextool/qgsvertextool.cpp
@@ -2040,6 +2040,18 @@ void QgsVertexTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocato

setHighlightedVertices( mSelectedVertices ); // update positions of existing highlighted vertices
setHighlightedVerticesVisible( true ); // time to show highlighted vertices again

// restart startDraggingAddVertexAtEndpoint right after it finishes
if ( addingAtEndpoint )
{
if ( mMouseAtEndpoint->vertexId != 0 )
{
// If we were adding at the end of the featue, we need to update the index
mMouseAtEndpoint.reset( new Vertex( mMouseAtEndpoint->layer, mMouseAtEndpoint->fid, mMouseAtEndpoint->vertexId + 1 ) );
}
// And then we just restart the drag
startDraggingAddVertexAtEndpoint( mapPoint );
}
}


0 comments on commit 0b2a925

Please sign in to comment.
You can’t perform that action at this time.