Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[convert to curve] (cleanup)
  • Loading branch information
olivierdalang authored and nyalldawson committed Jun 18, 2021
1 parent 8736f72 commit 3b2f77b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -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" ),
Expand Down
2 changes: 0 additions & 2 deletions src/gui/qgsmaptoolcapture.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 3b2f77b

Please sign in to comment.