[GRASS-SVN] r48455 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 25 05:46:14 EDT 2011


Author: annakrat
Date: 2011-09-25 02:46:14 -0700 (Sun, 25 Sep 2011)
New Revision: 48455

Modified:
   grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
Log:
wxNviz: fix stdout, stderr names (changed in r48344)

Modified: grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py	2011-09-24 16:24:46 UTC (rev 48454)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py	2011-09-25 09:46:14 UTC (rev 48455)
@@ -121,8 +121,8 @@
     
         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 @@
         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']



More information about the grass-commit mailing list