Skip to content

Commit

Permalink
Do not display rubber band if label cannot be rotated
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 22, 2018
1 parent 1ab6d32 commit 333971c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsmaptoolrotatelabel.cpp
Expand Up @@ -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 ) )
Expand Down

0 comments on commit 333971c

Please sign in to comment.