Skip to content
Permalink
Browse files

Bugfix for scalebarwidget

git-svn-id: http://svn.osgeo.org/qgis/trunk@11896 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Nov 2, 2009
1 parent f4b1efd commit c6ec0e6df997240d5285bfe5e53e3ea87857b6f6
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 c6ec0e6

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