Skip to content

Commit

Permalink
Fix for scalebarproblem (bug 1479) also in 1.0
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@10235 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 25, 2009
1 parent 0108756 commit 1091525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/composer/qgscomposerscalebarwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) );
}
}
}
Expand Down Expand Up @@ -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 )
{
Expand Down

0 comments on commit 1091525

Please sign in to comment.