Skip to content

Commit

Permalink
Double-click to add vertex only on an edge
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Mar 29, 2017
1 parent 14a00b7 commit 015e3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/nodetool/qgsnodetool2.cpp
Expand Up @@ -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 ) );
Expand Down

0 comments on commit 015e3f4

Please sign in to comment.