[GRASS-SVN] r30315 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 23 19:50:15 EST 2008
Author: martinl
Date: 2008-02-23 19:50:15 -0500 (Sat, 23 Feb 2008)
New Revision: 30315
Modified:
grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: update progress bar range before auto-render
Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2008-02-24 00:46:41 UTC (rev 30314)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2008-02-24 00:50:15 UTC (rev 30315)
@@ -672,13 +672,13 @@
else:
self.Map.ChangeLayerActive(self.GetPyData(item)[0]['maplayer'], checked)
+ # update progress bar range (mapwindow statusbar)
+ self.mapdisplay.onRenderGauge.SetRange(len(self.Map.GetListOfLayers(l_active=True)))
+
# redraw map if auto-rendering is enabled
if self.mapdisplay.autoRender.GetValue():
self.mapdisplay.OnRender(None)
- # update progress bar range (mapwindow statusbar)
- self.mapdisplay.onRenderGauge.SetRange(len(self.Map.GetListOfLayers(l_active=True)))
-
def OnCmdChanged(self, event):
"""Change command string"""
ctrl = event.GetEventObject()
More information about the grass-commit
mailing list