Skip to content
Permalink
Browse files

[Bugfix] Read SLD TextSymbolizer : change offset units if offset change

  • Loading branch information
rldhont authored and Gustry committed Jan 10, 2020
1 parent e62594e commit 2f7888b533463f1514f6e4035d222741831908c7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsvectorlayer.cpp
@@ -4473,7 +4473,7 @@ bool QgsVectorLayer::readSldTextSymbolizer( const QDomNode &node, QgsPalLayerSet
if ( ok )
{
settings.xOffset = xOffset;
settings.distUnits = QgsUnitTypes::RenderPixels;
settings.offsetUnits = QgsUnitTypes::RenderPixels;
}
}
QDomElement anchorPointYElem = anchorPointElem.firstChildElement( QStringLiteral( "AnchorPointY" ) );
@@ -4484,7 +4484,7 @@ bool QgsVectorLayer::readSldTextSymbolizer( const QDomNode &node, QgsPalLayerSet
if ( ok )
{
settings.yOffset = yOffset;
settings.distUnits = QgsUnitTypes::RenderPixels;
settings.offsetUnits = QgsUnitTypes::RenderPixels;
}
}
}

0 comments on commit 2f7888b

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