[GRASS-SVN] r33110 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 27 04:46:11 EDT 2008


Author: martinl
Date: 2008-08-27 04:46:11 -0400 (Wed, 27 Aug 2008)
New Revision: 33110

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
Log:
wxGUI: post wxUpdateProgressbar event only if mapWindow is not None


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2008-08-27 06:07:17 UTC (rev 33109)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2008-08-27 08:46:11 UTC (rev 33110)
@@ -817,10 +817,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