Skip to content
Permalink
Browse files

Fix label font size unit from 2.x projects incorrectly restored (fix #…

  • Loading branch information
nyalldawson committed Feb 5, 2017
1 parent c5546b0 commit 6ca2cc18ef73f49f7497bf2d17da7d36edfa6b94
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgstextrenderer.cpp
@@ -1382,8 +1382,8 @@ void QgsTextFormat::readFromLayer( QgsVectorLayer* layer )

if ( layer->customProperty( QStringLiteral( "labeling/fontSizeUnit" ) ).toString().isEmpty() )
{
d->fontSizeUnits = layer->customProperty( QStringLiteral( "labeling/fontSizeInMapUnits" ), 0 ).toUInt() == 0 ?
QgsUnitTypes::RenderPoints : QgsUnitTypes::RenderMapUnits;
d->fontSizeUnits = layer->customProperty( QStringLiteral( "labeling/fontSizeInMapUnits" ), QVariant( false ) ).toBool() ?
QgsUnitTypes::RenderMapUnits : QgsUnitTypes::RenderPoints;
}
else
{

0 comments on commit 6ca2cc1

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