Explorar o código

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á %!s(int64=11) %!d(string=hai) anos
pai
achega
156c9c78a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
                             try:
-                                minValue, maxValue = map(int, valuelist[0].split('-'))
+                                minValue, maxValue = map(int, valuelist[0].rsplit('-', 1))
                             except ValueError:
                                 minValue = -1e6
                                 maxValue = 1e6