@@ -133,7 +133,7 @@ QgsPalLayerSettings::QgsPalLayerSettings()
133
133
// text formatting
134
134
wrapChar = " " ;
135
135
multilineHeight = 1.0 ;
136
- multilineAlign = MultiLeft ;
136
+ multilineAlign = MultiFollowPlacement ;
137
137
addDirectionSymbol = false ;
138
138
leftDirectionSymbol = QString ( " <" );
139
139
rightDirectionSymbol = QString ( " >" );
@@ -856,7 +856,7 @@ void QgsPalLayerSettings::readFromLayer( QgsVectorLayer* layer )
856
856
// text formatting
857
857
wrapChar = layer->customProperty ( " labeling/wrapChar" ).toString ();
858
858
multilineHeight = layer->customProperty ( " labeling/multilineHeight" , QVariant ( 1.0 ) ).toDouble ();
859
- multilineAlign = static_cast < MultiLineAlign >( layer->customProperty ( " labeling/multilineAlign" , QVariant ( MultiLeft ) ).toUInt () );
859
+ multilineAlign = static_cast < MultiLineAlign >( layer->customProperty ( " labeling/multilineAlign" , QVariant ( MultiFollowPlacement ) ).toUInt () );
860
860
addDirectionSymbol = layer->customProperty ( " labeling/addDirectionSymbol" ).toBool ();
861
861
leftDirectionSymbol = layer->customProperty ( " labeling/leftDirectionSymbol" , QVariant ( " <" ) ).toString ();
862
862
rightDirectionSymbol = layer->customProperty ( " labeling/rightDirectionSymbol" , QVariant ( " >" ) ).toString ();
@@ -1308,7 +1308,7 @@ void QgsPalLayerSettings::readXml( QDomElement& elem )
1308
1308
QDomElement textFormatElem = elem.firstChildElement ( " text-format" );
1309
1309
wrapChar = textFormatElem.attribute ( " wrapChar" );
1310
1310
multilineHeight = textFormatElem.attribute ( " multilineHeight" , " 1" ).toDouble ();
1311
- multilineAlign = static_cast < MultiLineAlign >( textFormatElem.attribute ( " multilineAlign" , QString::number ( MultiLeft ) ).toUInt () );
1311
+ multilineAlign = static_cast < MultiLineAlign >( textFormatElem.attribute ( " multilineAlign" , QString::number ( MultiFollowPlacement ) ).toUInt () );
1312
1312
addDirectionSymbol = textFormatElem.attribute ( " addDirectionSymbol" ).toInt ();
1313
1313
leftDirectionSymbol = textFormatElem.attribute ( " leftDirectionSymbol" , " <" );
1314
1314
rightDirectionSymbol = textFormatElem.attribute ( " rightDirectionSymbol" , " >" );
0 commit comments