Bläddra i källkod

wxGUI/forms: fix options range for negative values

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59346 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 år sedan
förälder
incheckning
156c9c78a3
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      gui/wxpython/gui_core/forms.py

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -1024,7 +1024,7 @@ class CmdPanel(wx.Panel):
 
 
                             # for multiple integers use textctrl instead of spinsctrl
                             # for multiple integers use textctrl instead of spinsctrl
                             try:
                             try:
-                                minValue, maxValue = map(int, valuelist[0].split('-'))
+                                minValue, maxValue = map(int, valuelist[0].rsplit('-', 1))
                             except ValueError:
                             except ValueError:
                                 minValue = -1e6
                                 minValue = -1e6
                                 maxValue = 1e6
                                 maxValue = 1e6