Skip to content

Commit

Permalink
[labeling] allows data defined to align multiline when wordwrap funct…
Browse files Browse the repository at this point in the history
…ion is used as expression (fix #11805)
  • Loading branch information
slarosa committed Dec 14, 2014
1 parent e568493 commit 368fc67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgspallabeling.cpp
Expand Up @@ -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 ) )
Expand Down

0 comments on commit 368fc67

Please sign in to comment.