Skip to content

Commit ee16369

Browse files
author
Marco Hugentobler
committed
Thousand separator for numeric scale bar style (depending on locale). Implements ticket #6287
1 parent a91766d commit ee16369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/composer/qgsnumericscalebarstyle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ QString QgsNumericScaleBarStyle::scaleText() const
9191
if ( composerMap )
9292
{
9393
scaleDenominator = composerMap->scale();
94-
scaleBarText = "1:" + QString::number( scaleDenominator, 'f', 0 );
94+
scaleBarText = "1:" + QString( "%L1" ).arg( scaleDenominator, 0, 'f', 0 );
9595
}
96-
scaleBarText = "1:" + QString::number( scaleDenominator, 'f', 0 );
96+
scaleBarText = "1:" + QString( "%L1" ).arg( scaleDenominator, 0, 'f', 0 );
9797
}
9898
return scaleBarText;
9999
}

0 commit comments

Comments
 (0)