Selaa lähdekoodia

Fix various bugs resulting from the change to gcmd.RunCommand

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35395 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 16 vuotta sitten
vanhempi
commit
29e8a10473
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      gui/wxpython/gui_modules/profile.py

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

@@ -289,7 +289,7 @@ class ProfileFrame(wx.Frame):
                                   map = r['name'])
 
             if ret:
-                r['units'] = p.splitlines()[0].split('=')[1]
+                r['units'] = ret.splitlines()[0].split('=')[1]
 
             # update title
             self.ptitle += ' %s and' % r['name']
@@ -413,7 +413,7 @@ class ProfileFrame(wx.Frame):
         import subprocess
         
         try:
-            ret = RunCommand("r.profile",
+            ret = gcmd.RunCommand("r.profile",
                              input=raster,
                              profile=coords,
                              null="nan",
@@ -424,7 +424,7 @@ class ProfileFrame(wx.Frame):
                 return dataset
             
             for line in ret.splitlines():
-                dist, elev = outline.split(' ')
+                dist, elev = line.split(' ')
                 if elev != 'nan':
                     datalist.append((dist,elev))