Skip to content

Commit 333971c

Browse files
committedOct 22, 2018
Do not display rubber band if label cannot be rotated
1 parent 1ab6d32 commit 333971c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/app/qgsmaptoolrotatelabel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ void QgsMapToolRotateLabel::canvasPressEvent( QgsMapMouseEvent *e )
8383
QgsPalIndexes indexes;
8484
if ( createAuxiliaryFields( indexes ) )
8585
return;
86+
87+
if ( !labelIsRotatable( mCurrentLabel.layer, mCurrentLabel.settings, rotationCol ) )
88+
return;
8689
}
8790

8891
if ( currentLabelDataDefinedRotation( mCurrentRotation, hasRotationValue, rotationCol, true ) )

0 commit comments

Comments
 (0)
Please sign in to comment.