[QGIS Commit] r11896 - trunk/qgis/src/app/composer
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Mon Nov 2 12:28:03 EST 2009
Author: mhugent
Date: 2009-11-02 12:28:03 -0500 (Mon, 02 Nov 2009)
New Revision: 11896
Modified:
trunk/qgis/src/app/composer/qgscomposerscalebarwidget.cpp
Log:
Bugfix for scalebarwidget
Modified: trunk/qgis/src/app/composer/qgscomposerscalebarwidget.cpp
===================================================================
--- trunk/qgis/src/app/composer/qgscomposerscalebarwidget.cpp 2009-11-02 17:27:13 UTC (rev 11895)
+++ trunk/qgis/src/app/composer/qgscomposerscalebarwidget.cpp 2009-11-02 17:28:03 UTC (rev 11896)
@@ -37,7 +37,6 @@
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 @@
{
QString mapText = tr( "Map %1" ).arg( mComposerScaleBar->composerMap()->id() );
int itemId = mMapComboBox->findText( mapText );
- if ( itemId > 0 )
+ if ( itemId >= 0 )
{
mMapComboBox->setCurrentIndex( itemId );
}
More information about the QGIS-commit
mailing list