Skip to content

Commit

Permalink
Bugfix for scalebarwidget
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11896 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 2, 2009
1 parent f4b1efd commit c6ec0e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/composer/qgscomposerscalebarwidget.cpp
Expand Up @@ -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 );
}
Expand Down Expand Up @@ -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 );
}
Expand Down

0 comments on commit c6ec0e6

Please sign in to comment.