Skip to content
Permalink
Browse files
[convert to curve] (cleanup)
  • Loading branch information
olivierdalang authored and nyalldawson committed Jun 18, 2021
1 parent 8736f72 commit 3b2f77bf3084f2d9f27c3b2633bf39a84a99ccae
Showing with 1 addition and 3 deletions.
  1. +1 −1 src/app/vertextool/qgsvertextool.cpp
  2. +0 −2 src/gui/qgsmaptoolcapture.cpp
@@ -2587,7 +2587,7 @@ void QgsVertexTool::toggleVertexCurve()
if ( mDraggingVertex )
{
stopDragging();
if( mDraggingVertexType == AddingVertex || mDraggingVertexType == AddingEndpoint )
if ( mDraggingVertexType == AddingVertex || mDraggingVertexType == AddingEndpoint )
{
QgisApp::instance()->messageBar()->pushMessage(
tr( "Could not convert vertex" ),
@@ -345,8 +345,6 @@ void QgsMapToolCapture::resetRubberBand()
if ( !mRubberBand )
return;
QgsLineString *lineString = mCaptureCurve.curveToLine();
// maybe ?
// mRubberBand->reset( mCaptureMode == CapturePolygon ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, mDigitizingType );
mRubberBand->reset( mCaptureMode == CapturePolygon ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry );
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( mCanvas->currentLayer() );
mRubberBand->addGeometry( QgsGeometry( lineString ), vlayer );

0 comments on commit 3b2f77b

Please sign in to comment.