Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix rotation widget disappears after ctrl-clicking to set anchor point
Fixes #17232
  • Loading branch information
nyalldawson authored and 3nids committed Jan 22, 2018
1 parent 8a6fcc8 commit 912bbe3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsmaptoolrotatefeature.cpp
Expand Up @@ -167,8 +167,6 @@ void QgsMapToolRotateFeature::canvasMoveEvent( QgsMapMouseEvent *e )

void QgsMapToolRotateFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
{
deleteRotationWidget();

if ( !mCanvas )
{
return;
Expand All @@ -177,15 +175,15 @@ void QgsMapToolRotateFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
QgsVectorLayer *vlayer = currentVectorLayer();
if ( !vlayer )
{
deleteRotationWidget();
deleteRubberband();
notifyNotVectorLayer();
return;
}

if ( e->button() == Qt::RightButton )
{
deleteRubberband();
mRotationActive = false;
cancel();
return;
}

Expand All @@ -202,6 +200,8 @@ void QgsMapToolRotateFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
return;
}

deleteRotationWidget();

// Initialize rotation if not yet active
if ( !mRotationActive )
{
Expand Down

0 comments on commit 912bbe3

Please sign in to comment.