Skip to content

Commit

Permalink
Thousand separator for numeric scale bar style (depending on locale).…
Browse files Browse the repository at this point in the history
… Implements ticket #6287
  • Loading branch information
Marco Hugentobler committed Aug 31, 2012
1 parent a91766d commit ee16369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/composer/qgsnumericscalebarstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.