Skip to content

Commit 015e3f4

Browse files
committed
Double-click to add vertex only on an edge
1 parent 14a00b7 commit 015e3f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/nodetool/qgsnodetool2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ void QgsNodeTool2::mouseMoveDraggingEdge( QgsMapMouseEvent *e )
453453
void QgsNodeTool2::canvasDoubleClickEvent( QgsMapMouseEvent *e )
454454
{
455455
QgsPointLocator::Match m = snapToEditableLayer( e );
456-
if ( !m.isValid() )
456+
if ( !m.hasEdge() )
457457
return;
458458

459459
mNewVertexFromDoubleClick.reset( new QgsPointLocator::Match( m ) );

0 commit comments

Comments
 (0)