mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Thousand separator for numeric scale bar style (depending on locale). Implements ticket #6287
This commit is contained in:
parent
a91766d005
commit
ee1636900a
@ -91,9 +91,9 @@ QString QgsNumericScaleBarStyle::scaleText() const
|
||||
if ( composerMap )
|
||||
{
|
||||
scaleDenominator = composerMap->scale();
|
||||
scaleBarText = "1:" + QString::number( scaleDenominator, 'f', 0 );
|
||||
scaleBarText = "1:" + QString( "%L1" ).arg( scaleDenominator, 0, 'f', 0 );
|
||||
}
|
||||
scaleBarText = "1:" + QString::number( scaleDenominator, 'f', 0 );
|
||||
scaleBarText = "1:" + QString( "%L1" ).arg( scaleDenominator, 0, 'f', 0 );
|
||||
}
|
||||
return scaleBarText;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user