Skip to content

Commit

Permalink
Write scales in composer not in exponential notation
Browse files Browse the repository at this point in the history
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 8520ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposermapwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/core/composer/qgsnumericscalebarstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8520ec5

Please sign in to comment.