[GRASS-SVN] r58608 - grass/trunk/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 4 09:27:32 PST 2014


Author: martinl
Date: 2014-01-04 09:27:31 -0800 (Sat, 04 Jan 2014)
New Revision: 58608

Modified:
   grass/trunk/gui/wxpython/gmodeler/dialogs.py
   grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/modeler: fix r58607

Modified: grass/trunk/gui/wxpython/gmodeler/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/dialogs.py	2014-01-04 17:18:41 UTC (rev 58607)
+++ grass/trunk/gui/wxpython/gmodeler/dialogs.py	2014-01-04 17:27:31 UTC (rev 58608)
@@ -967,7 +967,7 @@
         
         # reorganize model items
         model.ReorderItems(idxList)
-        ### model.Normalize()
+        model.Normalize()
         self.Populate(model.GetItems(objType=ModelAction))
         
         # re-selected originaly selected item

Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py	2014-01-04 17:18:41 UTC (rev 58607)
+++ grass/trunk/gui/wxpython/gmodeler/model.py	2014-01-04 17:27:31 UTC (rev 58608)
@@ -1473,7 +1473,8 @@
 
     def SetLabel(self, label=''):
         """!Set loop text (condition)"""
-        self.label = label
+        if label:
+            self.label = label
         self.ClearText()
         self.AddText('(' + str(self.id) + ') ' + self.label)
 



More information about the grass-commit mailing list