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

0 comments on commit 6291d18

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