Skip to content
Permalink
Browse files

Fix rotation widget disappears after ctrl-clicking to set anchor point

Fixes #17232
  • Loading branch information
nyalldawson authored and 3nids committed Jan 21, 2018
1 parent 8a6fcc8 commit 912bbe3e5ed492550a0c8ed80abfb23b97d6e30a
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgsmaptoolrotatefeature.cpp
@@ -167,8 +167,6 @@ void QgsMapToolRotateFeature::canvasMoveEvent( QgsMapMouseEvent *e )

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

if ( !mCanvas )
{
return;
@@ -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;
}

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

deleteRotationWidget();

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

0 comments on commit 912bbe3

Please sign in to comment.
You can’t perform that action at this time.