[GRASS-SVN] r57349 - in grass/trunk/gui/wxpython: lmgr mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 1 13:15:48 PDT 2013


Author: annakrat
Date: 2013-08-01 13:15:48 -0700 (Thu, 01 Aug 2013)
New Revision: 57349

Modified:
   grass/trunk/gui/wxpython/lmgr/layertree.py
   grass/trunk/gui/wxpython/mapdisp/statusbar.py
Log:
wxGUI: fix rendering and statusbar problem caused recently by adding wx.Yield

Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2013-08-01 18:47:14 UTC (rev 57348)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2013-08-01 20:15:48 UTC (rev 57349)
@@ -367,9 +367,11 @@
         # no need to distinguish 2D and 3D since the interface is the same
         # remove this comment when it is onl enough
         if self.rerender:
+            # restart rerender value here before wx.Yield
+            # can cause another idle event
+            self.rerender = False
             if self.mapdisplay.IsAutoRendered():
                 self.mapdisplay.GetMapWindow().UpdateMap(render=True)
-            self.rerender = False
         
         event.Skip()
         

Modified: grass/trunk/gui/wxpython/mapdisp/statusbar.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/statusbar.py	2013-08-01 18:47:14 UTC (rev 57348)
+++ grass/trunk/gui/wxpython/mapdisp/statusbar.py	2013-08-01 20:15:48 UTC (rev 57349)
@@ -1041,7 +1041,9 @@
         Needed for wxNVIZ.
         """
         if value > self.GetRange():
+            self.Hide()
             return
+
         self.widget.SetValue(value)
         if value == self.GetRange():
             self.Hide()



More information about the grass-commit mailing list