Explorar o código

Fix error in parsing r.profile output. AFAICT, this problem arose from some kind of change in the r.profile output since this same syntax was not problematic in the recent past.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41133 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton %!s(int64=15) %!d(string=hai) anos
pai
achega
c9843dc0a7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/gui_modules/profile.py

+ 1 - 1
gui/wxpython/gui_modules/profile.py

@@ -453,7 +453,7 @@ class ProfileFrame(wx.Frame):
                 return dataset
             
             for line in ret.splitlines():
-                dist, elev = line.split(' ')
+                dist, elev = line.strip().split(' ')
                 if elev != 'nan':
                     datalist.append((dist,elev))