We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent c5546b0 commit 6ca2cc1Copy full SHA for 6ca2cc1
src/core/qgstextrenderer.cpp
@@ -1382,8 +1382,8 @@ void QgsTextFormat::readFromLayer( QgsVectorLayer* layer )
1382
1383
if ( layer->customProperty( QStringLiteral( "labeling/fontSizeUnit" ) ).toString().isEmpty() )
1384
{
1385
- d->fontSizeUnits = layer->customProperty( QStringLiteral( "labeling/fontSizeInMapUnits" ), 0 ).toUInt() == 0 ?
1386
- QgsUnitTypes::RenderPoints : QgsUnitTypes::RenderMapUnits;
+ d->fontSizeUnits = layer->customProperty( QStringLiteral( "labeling/fontSizeInMapUnits" ), QVariant( false ) ).toBool() ?
+ QgsUnitTypes::RenderMapUnits : QgsUnitTypes::RenderPoints;
1387
}
1388
else
1389
0 commit comments