[QGIS Commit] r11083 - trunk/qgis/src/plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Jul 15 07:09:39 EDT 2009


Author: rugginoso
Date: 2009-07-15 07:09:38 -0400 (Wed, 15 Jul 2009)
New Revision: 11083

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassmapcalc.cpp
Log:
Fix for #1779.


Modified: trunk/qgis/src/plugins/grass/qgsgrassmapcalc.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmapcalc.cpp	2009-07-15 10:54:39 UTC (rev 11082)
+++ trunk/qgis/src/plugins/grass/qgsgrassmapcalc.cpp	2009-07-15 11:09:38 UTC (rev 11083)
@@ -834,7 +834,7 @@
   QgsDebugMsg( "entered." );
   QString current = mMapComboBox->currentText();
   mMapComboBox->clear();
-  mMaps.resize( 0 );
+  mMaps.clear();
 
   QgsMapCanvas *canvas = mIface->mapCanvas();
 
@@ -882,7 +882,7 @@
     //if ( mUpdate && mapset != QgsGrass::getDefaultMapset() ) continue;
 
     mMapComboBox->addItem( layer->name() );
-    if ( layer->name() == current ) mMapComboBox->setItemText( mMapComboBox->currentIndex(), current );
+    //if ( layer->name() == current ) mMapComboBox->setItemText( mMapComboBox->currentIndex(), current );
     mMaps.push_back( map + "@" + mapset );
   }
 }



More information about the QGIS-commit mailing list