Skip to content

Commit

Permalink
Merge pull request #1724 from slarosa/dd_wrapword
Browse files Browse the repository at this point in the history
[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 d28619d
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 d28619d

Please sign in to comment.