[GRASS-SVN] r68081 - grass/branches/releasebranch_7_0/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 19 05:21:50 PDT 2016


Author: martinl
Date: 2016-03-19 05:21:50 -0700 (Sat, 19 Mar 2016)
New Revision: 68081

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/model.py
Log:
g.gui.gmodeler - strange duplicity when setting comment (#2944)
               (merge r68052 from trunk)


Modified: grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/model.py	2016-03-19 07:51:10 UTC (rev 68080)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/model.py	2016-03-19 12:21:50 UTC (rev 68081)
@@ -1080,16 +1080,18 @@
             font.SetStyle(wx.ITALIC)
             self.regionComment.SetFont(font)
 
+        ### clear doesn't work
+        ### self.regionComment.ClearText()
         self.regionComment.SetText(comment)
-            
+
+        self.ClearRegions()
+        self.AddRegion(self.regionLabel)
+        self.regionLabel.SetProportions(0.0, 1.0)
+
         if self.comment:
             self.AddRegion(self.regionComment)
             self.regionLabel.SetProportions(0.0, 0.4)
-        else:
-            self.ClearRegions()
-            self.AddRegion(self.regionLabel)
-            self.regionLabel.SetProportions(0.0, 1.0)
-        
+
         self.SetRegionSizes()
         self.ReformatRegions()
 



More information about the grass-commit mailing list