Skip to content

Commit

Permalink
Cleanup leftover rubberband
Browse files Browse the repository at this point in the history
(cherry picked from commit 621d607)
  • Loading branch information
uclaros authored and nyalldawson committed Jun 19, 2020
1 parent 73ea3d6 commit 3e68ae9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsmaptoolselectionhandler.cpp
Expand Up @@ -220,10 +220,9 @@ void QgsMapToolSelectionHandler::selectFeaturesReleaseEvent( QgsMapMouseEvent *e
} }


if ( mSelectionRubberBand && mSelectionActive ) if ( mSelectionRubberBand && mSelectionActive )
{
setSelectedGeometry( mSelectionRubberBand->asGeometry(), e->modifiers() ); setSelectedGeometry( mSelectionRubberBand->asGeometry(), e->modifiers() );
if ( mSelectionRubberBand )
mSelectionRubberBand.reset(); mSelectionRubberBand.reset();
}


mSelectionActive = false; mSelectionActive = false;
} }
Expand Down

0 comments on commit 3e68ae9

Please sign in to comment.