Skip to content

Commit af96675

Browse files
olivierdalangnyalldawson
authored andcommitted
[convert to curve] improve interaction while dragging
1 parent 527042e commit af96675

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/app/vertextool/qgsvertextool.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,18 @@ void QgsVertexTool::toggleVertexCurve()
25852585
}
25862586

25872587
if ( mDraggingVertex )
2588+
{
25882589
stopDragging();
2590+
if( mDraggingVertexType == AddingVertex || mDraggingVertexType == AddingEndpoint )
2591+
{
2592+
QgisApp::instance()->messageBar()->pushMessage(
2593+
tr( "Could not convert vertex" ),
2594+
tr( "Cannot convert vertex before it is added." ),
2595+
Qgis::Warning );
2596+
return;
2597+
}
2598+
2599+
}
25892600

25902601
QgsVectorLayer *layer = toConvert.layer;
25912602

0 commit comments

Comments
 (0)