Переглянути джерело

wxNviz: fix stdout, stderr names (changed in https://trac.osgeo.org/grass/changeset/48344)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48455 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 роки тому
батько
коміт
3743b548b4
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      gui/wxpython/gui_modules/nviz_mapdisp.py

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

@@ -121,8 +121,8 @@ class GLWindow(MapWindow, glcanvas.GLCanvas):
     
         if self.lmgr:
             self.log = self.lmgr.goutput
-            logerr = self.lmgr.goutput.cmd_stderr
-            logmsg = self.lmgr.goutput.cmd_output
+            logerr = self.lmgr.goutput.cmdStrErr
+            logmsg = self.lmgr.goutput.cmdOutput
         else:
             self.log = logmsg = sys.stdout
             logerr = sys.stderr
@@ -2103,7 +2103,7 @@ class GLWindow(MapWindow, glcanvas.GLCanvas):
         cplane = self.lmgr.nviz.FindWindowById(self.lmgr.nviz.win['cplane']['planes']).GetStringSelection()
         try:
             planeIndex = int(cplane.split()[-1]) - 1
-        except IndexError:
+        except (IndexError, ValueError):
             planeIndex = None
         if planeIndex is not None:
             shading = ['clear', 'top', 'bottom', 'blend', 'shaded']