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 12, 2020
1 parent b5f76d5 commit f38cc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -4620,7 +4620,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 f38cc55

Please sign in to comment.