From 333971c9816b66c0cc15d3df7a3442dbb4fa0a47 Mon Sep 17 00:00:00 2001 From: Blottiere Paul Date: Mon, 22 Oct 2018 23:26:49 +0200 Subject: [PATCH] Do not display rubber band if label cannot be rotated --- src/app/qgsmaptoolrotatelabel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/qgsmaptoolrotatelabel.cpp b/src/app/qgsmaptoolrotatelabel.cpp index fce48228f34e..d84f01d89d09 100644 --- a/src/app/qgsmaptoolrotatelabel.cpp +++ b/src/app/qgsmaptoolrotatelabel.cpp @@ -83,6 +83,9 @@ void QgsMapToolRotateLabel::canvasPressEvent( QgsMapMouseEvent *e ) QgsPalIndexes indexes; if ( createAuxiliaryFields( indexes ) ) return; + + if ( !labelIsRotatable( mCurrentLabel.layer, mCurrentLabel.settings, rotationCol ) ) + return; } if ( currentLabelDataDefinedRotation( mCurrentRotation, hasRotationValue, rotationCol, true ) )