mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix label priority when using non-pixel sizes
This commit is contained in:
parent
93d25d61e7
commit
1d1e1cc29d
@ -887,7 +887,7 @@ void QgsMapBoxGlStyleConverter::parseSymbolLayer( const QVariantMap &jsonLayer,
|
||||
if ( textSize >= 0 )
|
||||
{
|
||||
// TODO -- this probably needs revisiting -- it was copied from the MapTiler code, but may be wrong...
|
||||
labelSettings.priority = std::min( textSize / 3, 10.0 );
|
||||
labelSettings.priority = std::min( textSize / ( context.pixelSizeConversionFactor() * 3 ), 10.0 );
|
||||
}
|
||||
|
||||
labelSettings.setFormat( format );
|
||||
|
Loading…
x
Reference in New Issue
Block a user