Skip to content

Commit dacced8

Browse files
committedNov 28, 2017
Cleanup some offset tool code
1 parent 1d0db0b commit dacced8

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed
 

‎src/app/qgsmaptooloffsetcurve.cpp

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333

3434
QgsMapToolOffsetCurve::QgsMapToolOffsetCurve( QgsMapCanvas *canvas )
3535
: QgsMapToolEdit( canvas )
36-
, mModifiedFeature( -1 )
37-
, mGeometryModified( false )
38-
, mForceCopy( false )
39-
, mMultiPartGeometry( false )
4036
{
4137
}
4238

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

79-
if ( e->button() == Qt::RightButton )
80-
{
81-
return;
82-
}
83-
8475
QgsSnappingUtils *snapping = mCanvas->snappingUtils();
8576

8677
// store previous settings
@@ -122,10 +113,11 @@ void QgsMapToolOffsetCurve::canvasReleaseEvent( QgsMapMouseEvent *e )
122113
{
123114
emit messageEmitted( tr( "Could not find a nearby feature in any vector layer." ) );
124115
}
125-
return;
126116
}
127-
128-
applyOffset();
117+
else
118+
{
119+
applyOffset();
120+
}
129121
}
130122

131123
void QgsMapToolOffsetCurve::applyOffset()

0 commit comments

Comments
 (0)
Please sign in to comment.