Skip to content
Permalink
Browse files

Merge pull request #1724 from slarosa/dd_wrapword

[labeling] allows data defined to align multiline when wordwrap function is used as expression (fix #11805)
  • Loading branch information
slarosa committed Dec 15, 2014
2 parents f79dbcd + 368fc67 commit d28619da07b1eca60d412ef60d422731f949252a
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 d28619d

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