File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 33
33
34
34
QgsMapToolOffsetCurve::QgsMapToolOffsetCurve ( QgsMapCanvas *canvas )
35
35
: QgsMapToolEdit( canvas )
36
- , mModifiedFeature( -1 )
37
- , mGeometryModified( false )
38
- , mForceCopy( false )
39
- , mMultiPartGeometry( false )
40
36
{
41
37
}
42
38
@@ -76,11 +72,6 @@ void QgsMapToolOffsetCurve::canvasReleaseEvent( QgsMapMouseEvent *e )
76
72
mGeometryModified = false ;
77
73
mForceCopy = false ;
78
74
79
- if ( e->button () == Qt::RightButton )
80
- {
81
- return ;
82
- }
83
-
84
75
QgsSnappingUtils *snapping = mCanvas ->snappingUtils ();
85
76
86
77
// store previous settings
@@ -122,10 +113,11 @@ void QgsMapToolOffsetCurve::canvasReleaseEvent( QgsMapMouseEvent *e )
122
113
{
123
114
emit messageEmitted ( tr ( " Could not find a nearby feature in any vector layer." ) );
124
115
}
125
- return ;
126
116
}
127
-
128
- applyOffset ();
117
+ else
118
+ {
119
+ applyOffset ();
120
+ }
129
121
}
130
122
131
123
void QgsMapToolOffsetCurve::applyOffset ()
You can’t perform that action at this time.
0 commit comments