Skip to content
Permalink
Browse files
Double-click to add vertex only on an edge
  • Loading branch information
wonder-sk committed Mar 29, 2017
1 parent 14a00b7 commit 015e3f45e6670ec793375dfb41988fe7b1404f41
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/nodetool/qgsnodetool2.cpp
@@ -453,7 +453,7 @@ void QgsNodeTool2::mouseMoveDraggingEdge( QgsMapMouseEvent *e )
void QgsNodeTool2::canvasDoubleClickEvent( QgsMapMouseEvent *e )
{
QgsPointLocator::Match m = snapToEditableLayer( e );
if ( !m.isValid() )
if ( !m.hasEdge() )
return;

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

0 comments on commit 015e3f4

Please sign in to comment.