mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix label font size unit from 2.x projects incorrectly restored (fix #16143)
This commit is contained in:
parent
c5546b0357
commit
6ca2cc18ef
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user