Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Cleanup some offset tool code
- Loading branch information
Showing
with
4 additions
and
12 deletions.
-
+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() |
|
|