[GRASS-SVN] r53364 - grass/branches/releasebranch_6_4/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 11 07:35:18 PDT 2012


Author: annakrat
Date: 2012-10-11 07:35:18 -0700 (Thu, 11 Oct 2012)
New Revision: 53364

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

Modified: grass/branches/releasebranch_6_4/gui/wxpython/core/workspace.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/core/workspace.py	2012-10-11 14:26:31 UTC (rev 53363)
+++ grass/branches/releasebranch_6_4/gui/wxpython/core/workspace.py	2012-10-11 14:35:18 UTC (rev 53364)
@@ -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