Skip to content

Commit

Permalink
[Bugfix] Read SLD TextSymbolizer PointPlacement for lines
Browse files Browse the repository at this point in the history
For lines, if labeling palcement is horizontal, the TextSymbolizer will contain PointPlacement instead of LinePlacement.
  • Loading branch information
rldhont committed Feb 13, 2020
1 parent d35374c commit 6291d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4452,7 +4452,7 @@ bool QgsVectorLayer::readSldTextSymbolizer( const QDomNode &node, QgsPalLayerSet
settings.placement = QgsPalLayerSettings::OverPoint;
if ( geometryType() == QgsWkbTypes::LineGeometry )
{
settings.placement = QgsPalLayerSettings::Line;
settings.placement = QgsPalLayerSettings::Horizontal;
}

QDomElement displacementElem = pointPlacementElem.firstChildElement( QStringLiteral( "Displacement" ) );
Expand Down

0 comments on commit 6291d18

Please sign in to comment.