mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix rotation widget disappears after ctrl-clicking to set anchor point
Fixes #17232
This commit is contained in:
parent
8a6fcc8eac
commit
912bbe3e5e
@ -167,8 +167,6 @@ void QgsMapToolRotateFeature::canvasMoveEvent( QgsMapMouseEvent *e )
|
||||
|
||||
void QgsMapToolRotateFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
|
||||
{
|
||||
deleteRotationWidget();
|
||||
|
||||
if ( !mCanvas )
|
||||
{
|
||||
return;
|
||||
@ -177,6 +175,7 @@ void QgsMapToolRotateFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
|
||||
QgsVectorLayer *vlayer = currentVectorLayer();
|
||||
if ( !vlayer )
|
||||
{
|
||||
deleteRotationWidget();
|
||||
deleteRubberband();
|
||||
notifyNotVectorLayer();
|
||||
return;
|
||||
@ -184,8 +183,7 @@ void QgsMapToolRotateFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
|
||||
|
||||
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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user