Browse Source

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 năm trước cách đây
mục cha
commit
c9843dc0a7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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))