Skip to content
Permalink
Browse files

[Bugfix] Read SLD TextSymbolizer PointPlacement for lines

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 f38cc5588c3b45a507c8ca9c5d7c9ec3a5ec0ca0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayer.cpp
@@ -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" ) );

0 comments on commit f38cc55

Please sign in to comment.
You can’t perform that action at this time.