Skip to content

Commit 368fc67

Browse files
committed
[labeling] allows data defined to align multiline when wordwrap function is used as expression (fix #11805)
1 parent e568493 commit 368fc67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgspallabeling.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3554,7 +3554,7 @@ void QgsPalLabeling::dataDefinedTextFormatting( QgsPalLayerSettings& tmpLyr,
35543554
tmpLyr.wrapChar = ddValues.value( QgsPalLayerSettings::MultiLineWrapChar ).toString();
35553555
}
35563556

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

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

0 commit comments

Comments
 (0)