Skip to content

Commit

Permalink
[convert to curve] improve interaction while dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang authored and nyalldawson committed Jun 18, 2021
1 parent 527042e commit af96675
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -2585,7 +2585,18 @@ void QgsVertexTool::toggleVertexCurve()
}

if ( mDraggingVertex )
{
stopDragging();
if( mDraggingVertexType == AddingVertex || mDraggingVertexType == AddingEndpoint )
{
QgisApp::instance()->messageBar()->pushMessage(
tr( "Could not convert vertex" ),
tr( "Cannot convert vertex before it is added." ),
Qgis::Warning );
return;
}

}

QgsVectorLayer *layer = toConvert.layer;

Expand Down

0 comments on commit af96675

Please sign in to comment.