Skip to content
Permalink
Browse files
Write scales in composer not in exponential notation
git-svn-id: http://svn.osgeo.org/qgis/trunk@9173 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Aug 26, 2008
1 parent 1343a7b commit 8520ec52c8d6b219b5a305b641134a0ad4cc727b
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/composer/qgscomposermapwidget.cpp
  2. +1 −1 src/core/composer/qgsnumericscalebarstyle.cpp
@@ -200,7 +200,7 @@ void QgsComposerMapWidget::updateGuiElements()
QRectF composerMapRect = mComposerMap->rect();
mWidthLineEdit->setText( QString::number( composerMapRect.width() ) );
mHeightLineEdit->setText( QString::number( composerMapRect.height() ) );
mScaleLineEdit->setText( QString::number( mComposerMap->scale() ) );
mScaleLineEdit->setText( QString::number( mComposerMap->scale(), 'f', 0) );

//preview mode
QgsComposerMap::PreviewMode previewMode = mComposerMap->previewMode();
@@ -80,7 +80,7 @@ QString QgsNumericScaleBarStyle::scaleText() const
if ( composerMap )
{
double scaleDenominator = composerMap->scale();
scaleBarText = "1:" + QString::number( scaleDenominator );
scaleBarText = "1:" + QString::number(scaleDenominator, 'f', 0);
}
}
return scaleBarText;

0 comments on commit 8520ec5

Please sign in to comment.