Skip to content
Permalink
Browse files

Fix for scalebarproblem (bug 1479) also in 1.0

git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@10235 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Feb 25, 2009
1 parent 0108756 commit 10915250c37d0e4d4ea3dfd6ba41460b3a52645d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/composer/qgscomposerscalebarwidget.cpp
@@ -64,7 +64,7 @@ void QgsComposerScaleBarWidget::refreshMapComboBox()
QList<const QgsComposerMap*>::const_iterator mapItemIt = availableMaps.constBegin();
for ( ; mapItemIt != availableMaps.constEnd(); ++mapItemIt )
{
mMapComboBox->addItem( tr( "Map " ) + QString::number(( *mapItemIt )->id() ) );
mMapComboBox->addItem( tr( "Map %1" ).arg(( *mapItemIt )->id() ) );
}
}
}
@@ -145,7 +145,7 @@ void QgsComposerScaleBarWidget::setGuiElements()
//map combo box
if ( mComposerScaleBar->composerMap() )
{
QString mapText = tr( "Map " ) + mComposerScaleBar->composerMap()->id();
QString mapText = tr( "Map %1" ).arg( mComposerScaleBar->composerMap()->id() );
int itemId = mMapComboBox->findText( mapText );
if ( itemId > 0 )
{

0 comments on commit 1091525

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