Skip to content
Permalink
Browse files

Thousand separator for numeric scale bar style (depending on locale).…

… Implements ticket #6287
  • Loading branch information
Marco Hugentobler
Marco Hugentobler committed Aug 31, 2012
1 parent a91766d commit ee1636900a3403127d1853f52ae79853082a0ca5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/composer/qgsnumericscalebarstyle.cpp
@@ -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;
}

0 comments on commit ee16369

Please sign in to comment.
You can’t perform that action at this time.