[GRASS-SVN] r53365 - grass/branches/develbranch_6/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 11 07:36:01 PDT 2012


Author: annakrat
Date: 2012-10-11 07:36:00 -0700 (Thu, 11 Oct 2012)
New Revision: 53365

Modified:
   grass/branches/develbranch_6/gui/wxpython/core/workspace.py
Log:
wxNviz: minor fix for saving workspace (merge from trunk, r53363)

Modified: grass/branches/develbranch_6/gui/wxpython/core/workspace.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/workspace.py	2012-10-11 14:35:18 UTC (rev 53364)
+++ grass/branches/develbranch_6/gui/wxpython/core/workspace.py	2012-10-11 14:36:00 UTC (rev 53365)
@@ -267,7 +267,7 @@
         nviz = {}
         if node_nviz.find('surface') is not None: # -> raster
             nviz['surface'] = {}
-            for sec in ('attribute', 'draw', 'mask', 'position'):
+            for sec in ('attribute', 'draw', 'position'):
                 nviz['surface'][sec] = {}
         elif node_nviz.find('vlines') is not None or \
                 node_nviz.find('vpoints') is not None: # -> vector
@@ -734,6 +734,8 @@
             for name in data[attrb].iterkeys():
                 # surface attribute
                 if attrb == 'attribute':
+                    if data[attrb][name]['map'] is None:
+                        continue
                     self.file.write('%s<%s name="%s" map="%d">\n' % \
                                    (' ' * self.indent, attrb, name, data[attrb][name]['map']))
                     self.indent += 4



More information about the grass-commit mailing list