Skip to content
Permalink
Browse files
Fix for #6937, ensure QgsRubberBand is deleted if no active vector layer
  • Loading branch information
dakcarto committed Jan 1, 2013
1 parent 2b80d63 commit a385162cd17645ea2e62ca5690f13317a28a2de7
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/qgsmaptoolselectrectangle.cpp
@@ -66,6 +66,13 @@ void QgsMapToolSelectRectangle::canvasReleaseEvent( QMouseEvent *e )
QgsVectorLayer* vlayer = QgsMapToolSelectUtils::getCurrentVectorLayer( mCanvas );
if ( vlayer == NULL )
{
if ( mRubberBand )
{
mRubberBand->reset( QGis::Polygon );
delete mRubberBand;
mRubberBand = 0;
mDragging = false;
}
return;
}

0 comments on commit a385162

Please sign in to comment.