Skip to content
Permalink
Browse files

Cleanup some offset tool code

  • Loading branch information
nyalldawson committed Nov 28, 2017
1 parent 1d0db0b commit dacced8cb312c38578bb14dae932b0bd9db96c32
Showing with 4 additions and 12 deletions.
  1. +4 −12 src/app/qgsmaptooloffsetcurve.cpp
@@ -33,10 +33,6 @@

QgsMapToolOffsetCurve::QgsMapToolOffsetCurve( QgsMapCanvas *canvas )
: QgsMapToolEdit( canvas )
, mModifiedFeature( -1 )
, mGeometryModified( false )
, mForceCopy( false )
, mMultiPartGeometry( false )
{
}

@@ -76,11 +72,6 @@ void QgsMapToolOffsetCurve::canvasReleaseEvent( QgsMapMouseEvent *e )
mGeometryModified = false;
mForceCopy = false;

if ( e->button() == Qt::RightButton )
{
return;
}

QgsSnappingUtils *snapping = mCanvas->snappingUtils();

// store previous settings
@@ -122,10 +113,11 @@ void QgsMapToolOffsetCurve::canvasReleaseEvent( QgsMapMouseEvent *e )
{
emit messageEmitted( tr( "Could not find a nearby feature in any vector layer." ) );
}
return;
}

applyOffset();
else
{
applyOffset();
}
}

void QgsMapToolOffsetCurve::applyOffset()

0 comments on commit dacced8

Please sign in to comment.
You can’t perform that action at this time.