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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Jul 16 07:51:25 EDT 2009


Author: rugginoso
Date: 2009-07-16 07:51:24 -0400 (Thu, 16 Jul 2009)
New Revision: 11097

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
Log:
Fix for #1784.


Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2009-07-16 11:29:50 UTC (rev 11096)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2009-07-16 11:51:24 UTC (rev 11097)
@@ -1899,14 +1899,15 @@
   else if ( mControlType == CheckBoxes )
   {
     int cnt = 0;
-    for ( unsigned int i = 0; i < mCheckBoxes.size(); i++ )
+    QStringList values;
+    for ( unsigned int i = 0; i < mCheckBoxes.size(); ++i )
     {
       if ( mCheckBoxes[i]->isChecked() )
       {
-        if ( cnt > 0 ) value.append( "," );
-        value.append( mValues[i] );
+        values.append( mValues[i] );
       }
     }
+    value = values.join(",");
   }
   return value;
 }



More information about the QGIS-commit mailing list