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 authored and Gustry committed Jan 16, 2020
1 parent e62594e commit 2f7888b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -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" ) );
Expand All @@ -4484,7 +4484,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 2f7888b

Please sign in to comment.