[GRASS-SVN] r54465 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 29 14:11:25 PST 2012
Author: martinl
Date: 2012-12-29 14:11:25 -0800 (Sat, 29 Dec 2012)
New Revision: 54465
Modified:
grass/trunk/gui/wxpython/core/render.py
Log:
wxGUI: fix rendering into image
Modified: grass/trunk/gui/wxpython/core/render.py
===================================================================
--- grass/trunk/gui/wxpython/core/render.py 2012-12-29 21:35:07 UTC (rev 54464)
+++ grass/trunk/gui/wxpython/core/render.py 2012-12-29 22:11:25 UTC (rev 54465)
@@ -884,12 +884,13 @@
layers = self.layers + self.overlays
self.downloading = False
- #event = wxUpdateProgressBar(layer = None, map = self)
+ ### event = wxUpdateProgressBar(layer = None, map = self)
# When using Event for progress update, the event is handled after
# rendering. Maybe there exists some better solution than calling
# the method directly.
- mapWindow.GetProgressBar().UpdateProgress(None, self)
- #wx.PostEvent(mapWindow, event)
+ if mapWindow:
+ mapWindow.GetProgressBar().UpdateProgress(None, self)
+ ### wx.PostEvent(mapWindow, event)
for layer in layers:
# skip non-active map layers
if not layer or not layer.active:
More information about the grass-commit
mailing list