Skip to content

Commit

Permalink
[Bugfix] Read SLD TextSymbolizer : change offset units if offset change
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jan 15, 2020
1 parent 4291ace commit 32cad40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -4616,7 +4616,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" ) );
Expand All @@ -4627,7 +4627,7 @@ bool QgsVectorLayer::readSldTextSymbolizer( const QDomNode &node, QgsPalLayerSet
if ( ok )
{
settings.yOffset = yOffset;
settings.distUnits = QgsUnitTypes::RenderPixels;
settings.offsetUnits = QgsUnitTypes::RenderPixels;
}
}
}
Expand Down

0 comments on commit 32cad40

Please sign in to comment.