Skip to content

Commit c6ec0e6

Browse files
author
mhugent
committed
Bugfix for scalebarwidget
git-svn-id: http://svn.osgeo.org/qgis/trunk@11896 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f4b1efd commit c6ec0e6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/app/composer/qgscomposerscalebarwidget.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ QgsComposerScaleBarWidget::QgsComposerScaleBarWidget( QgsComposerScaleBar* scale
3737
mStyleComboBox->insertItem( 3, tr( "Line Ticks Down" ) );
3838
mStyleComboBox->insertItem( 4, tr( "Line Ticks Up" ) );
3939
mStyleComboBox->insertItem( 5, tr( "Numeric" ) );
40-
4140
setGuiElements(); //set the GUI elements to the state of scaleBar
4241
blockMemberSignals( false );
4342
}
@@ -153,7 +152,7 @@ void QgsComposerScaleBarWidget::setGuiElements()
153152
{
154153
QString mapText = tr( "Map %1" ).arg( mComposerScaleBar->composerMap()->id() );
155154
int itemId = mMapComboBox->findText( mapText );
156-
if ( itemId > 0 )
155+
if ( itemId >= 0 )
157156
{
158157
mMapComboBox->setCurrentIndex( itemId );
159158
}

0 commit comments

Comments
 (0)