[GRASS-SVN] r31509 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 24 11:45:10 EDT 2008
Author: martinl
Date: 2008-05-24 11:45:10 -0400 (Sat, 24 May 2008)
New Revision: 31509
Modified:
grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: bugfix for trac #176 (merge from devbr6, r31508)
Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-05-24 15:42:55 UTC (rev 31508)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-05-24 15:45:10 UTC (rev 31509)
@@ -396,8 +396,8 @@
if 'GRASS_INFO_PERCENT' in line:
# 'GRASS_INFO_PERCENT: 10' -> value=10
- value = int(line.split(':')[1].strip())
- if value < 100:
+ value = int(line.rsplit(':', 1)[1].strip())
+ if value >= 0 and value < 100:
self.gmgauge.SetValue(value)
else:
self.gmgauge.SetValue(0) # reset progress bar on '0%'
More information about the grass-commit
mailing list