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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Feb 10 06:05:30 EST 2010


Author: rblazek
Date: 2010-02-10 06:05:28 -0500 (Wed, 10 Feb 2010)
New Revision: 12914

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
Log:
do not use empty input

Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2010-02-10 10:04:35 UTC (rev 12913)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2010-02-10 11:05:28 UTC (rev 12914)
@@ -2441,13 +2441,13 @@
   // TODO: this is hack for network nodes, do it somehow better
   if ( mMapId.isEmpty() )
   {
-    opt = mKey + "=";
-
     if ( current <  mMaps.size() )
     {
-      opt.append( mMaps[current] );
+      if ( ! mMaps[current].isEmpty() )
+      {
+        list.push_back( mKey + "=" + mMaps[current] );
+      }
     }
-    list.push_back( opt );
   }
 
   if ( !mGeometryTypeOption.isNull() && current < mGeometryTypes.size() )



More information about the QGIS-commit mailing list