[GRASS-SVN] r33112 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 27 05:12:02 EDT 2008


Author: martinl
Date: 2008-08-27 05:12:01 -0400 (Wed, 27 Aug 2008)
New Revision: 33112

Modified:
   grass/trunk/gui/wxpython/gui_modules/render.py
Log:
wxGUI: post wxUpdateProgressbar event only if mapWindow is not None
(merge from devbr6, r33110)


Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py	2008-08-27 09:10:39 UTC (rev 33111)
+++ grass/trunk/gui/wxpython/gui_modules/render.py	2008-08-27 09:12:01 UTC (rev 33112)
@@ -806,10 +806,11 @@
                 if not layer.Render():
                     continue
             
-            # update progress bar
-            wx.SafeYield(mapWindow)
-            event = wxUpdateProgressBar(value=ilayer)
-            wx.PostEvent(mapWindow, event)
+            if mapWindow:
+                # update progress bar
+                wx.SafeYield(mapWindow)
+                event = wxUpdateProgressBar(value=ilayer)
+                wx.PostEvent(mapWindow, event)
             
             # add image to compositing list
             if layer.type != "overlay":



More information about the grass-commit mailing list