Преглед изворни кода

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 пре 15 година
родитељ
комит
c9843dc0a7
1 измењених фајлова са 1 додато и 1 уклоњено
  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
                 return dataset
             
             
             for line in ret.splitlines():
             for line in ret.splitlines():
-                dist, elev = line.split(' ')
+                dist, elev = line.strip().split(' ')
                 if elev != 'nan':
                 if elev != 'nan':
                     datalist.append((dist,elev))
                     datalist.append((dist,elev))