@@ -132,7 +132,7 @@ QgsPalLayerSettings::QgsPalLayerSettings()
132
132
// text formatting
133
133
wrapChar = " " ;
134
134
multilineHeight = 1.0 ;
135
- multilineAlign = MultiLeft ;
135
+ multilineAlign = MultiFollowPlacement ;
136
136
addDirectionSymbol = false ;
137
137
leftDirectionSymbol = QString ( " <" );
138
138
rightDirectionSymbol = QString ( " >" );
@@ -852,7 +852,7 @@ void QgsPalLayerSettings::readFromLayer( QgsVectorLayer* layer )
852
852
// text formatting
853
853
wrapChar = layer->customProperty ( " labeling/wrapChar" ).toString ();
854
854
multilineHeight = layer->customProperty ( " labeling/multilineHeight" , QVariant ( 1.0 ) ).toDouble ();
855
- multilineAlign = static_cast < MultiLineAlign >( layer->customProperty ( " labeling/multilineAlign" , QVariant ( MultiLeft ) ).toUInt () );
855
+ multilineAlign = static_cast < MultiLineAlign >( layer->customProperty ( " labeling/multilineAlign" , QVariant ( MultiFollowPlacement ) ).toUInt () );
856
856
addDirectionSymbol = layer->customProperty ( " labeling/addDirectionSymbol" ).toBool ();
857
857
leftDirectionSymbol = layer->customProperty ( " labeling/leftDirectionSymbol" , QVariant ( " <" ) ).toString ();
858
858
rightDirectionSymbol = layer->customProperty ( " labeling/rightDirectionSymbol" , QVariant ( " >" ) ).toString ();
@@ -1304,7 +1304,7 @@ void QgsPalLayerSettings::readXml( QDomElement& elem )
1304
1304
QDomElement textFormatElem = elem.firstChildElement ( " text-format" );
1305
1305
wrapChar = textFormatElem.attribute ( " wrapChar" );
1306
1306
multilineHeight = textFormatElem.attribute ( " multilineHeight" , " 1" ).toDouble ();
1307
- multilineAlign = static_cast < MultiLineAlign >( textFormatElem.attribute ( " multilineAlign" , QString::number ( MultiLeft ) ).toUInt () );
1307
+ multilineAlign = static_cast < MultiLineAlign >( textFormatElem.attribute ( " multilineAlign" , QString::number ( MultiFollowPlacement ) ).toUInt () );
1308
1308
addDirectionSymbol = textFormatElem.attribute ( " addDirectionSymbol" ).toInt ();
1309
1309
leftDirectionSymbol = textFormatElem.attribute ( " leftDirectionSymbol" , " <" );
1310
1310
rightDirectionSymbol = textFormatElem.attribute ( " rightDirectionSymbol" , " >" );
0 commit comments