Skip to content
Permalink
Browse files

[labeling] allows data defined to align multiline when wordwrap funct…

…ion is used as expression (fix #11805)
  • Loading branch information
slarosa committed Dec 14, 2014
1 parent e568493 commit 368fc674bba1a3d86303385b5be4a7b4640eaca8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgspallabeling.cpp
@@ -3554,7 +3554,7 @@ void QgsPalLabeling::dataDefinedTextFormatting( QgsPalLayerSettings& tmpLyr,
tmpLyr.wrapChar = ddValues.value( QgsPalLayerSettings::MultiLineWrapChar ).toString();
}

if ( !tmpLyr.wrapChar.isEmpty() )
if ( !tmpLyr.wrapChar.isEmpty() || tmpLyr.getLabelExpression()->expression().contains( "wordwrap" ) )
{

if ( ddValues.contains( QgsPalLayerSettings::MultiLineHeight ) )

0 comments on commit 368fc67

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