We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 2b80d63 commit a385162Copy full SHA for a385162
src/app/qgsmaptoolselectrectangle.cpp
@@ -66,6 +66,13 @@ void QgsMapToolSelectRectangle::canvasReleaseEvent( QMouseEvent *e )
66
QgsVectorLayer* vlayer = QgsMapToolSelectUtils::getCurrentVectorLayer( mCanvas );
67
if ( vlayer == NULL )
68
{
69
+ if ( mRubberBand )
70
+ {
71
+ mRubberBand->reset( QGis::Polygon );
72
+ delete mRubberBand;
73
+ mRubberBand = 0;
74
+ mDragging = false;
75
+ }
76
return;
77
}
78
0 commit comments