[GRASS-SVN] r59346 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 25 21:54:13 PDT 2014
Author: annakrat
Date: 2014-03-25 21:54:12 -0700 (Tue, 25 Mar 2014)
New Revision: 59346
Modified:
grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: fix options range for negative values
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2014-03-26 04:51:32 UTC (rev 59345)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2014-03-26 04:54:12 UTC (rev 59346)
@@ -1024,7 +1024,7 @@
# for multiple integers use textctrl instead of spinsctrl
try:
- minValue, maxValue = map(int, valuelist[0].split('-'))
+ minValue, maxValue = map(int, valuelist[0].rsplit('-', 1))
except ValueError:
minValue = -1e6
maxValue = 1e6
More information about the grass-commit
mailing list