Skip to content
Permalink
Browse files

Bugfix for scalebarwidget

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11896 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Nov 2, 2009
1 parent db9aede commit 7966b78c957a8416d76edb8d6641a315d956a114
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/composer/qgscomposerscalebarwidget.cpp
@@ -37,7 +37,6 @@ QgsComposerScaleBarWidget::QgsComposerScaleBarWidget( QgsComposerScaleBar* scale
mStyleComboBox->insertItem( 3, tr( "Line Ticks Down" ) );
mStyleComboBox->insertItem( 4, tr( "Line Ticks Up" ) );
mStyleComboBox->insertItem( 5, tr( "Numeric" ) );

setGuiElements(); //set the GUI elements to the state of scaleBar
blockMemberSignals( false );
}
@@ -153,7 +152,7 @@ void QgsComposerScaleBarWidget::setGuiElements()
{
QString mapText = tr( "Map %1" ).arg( mComposerScaleBar->composerMap()->id() );
int itemId = mMapComboBox->findText( mapText );
if ( itemId > 0 )
if ( itemId >= 0 )
{
mMapComboBox->setCurrentIndex( itemId );
}

0 comments on commit 7966b78

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