[GRASS-SVN] r53363 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 11 07:26:32 PDT 2012
Author: annakrat
Date: 2012-10-11 07:26:31 -0700 (Thu, 11 Oct 2012)
New Revision: 53363
Modified:
grass/trunk/gui/wxpython/core/workspace.py
Log:
wxNviz: minor fix for saving workspace
Modified: grass/trunk/gui/wxpython/core/workspace.py
===================================================================
--- grass/trunk/gui/wxpython/core/workspace.py 2012-10-11 12:16:04 UTC (rev 53362)
+++ grass/trunk/gui/wxpython/core/workspace.py 2012-10-11 14:26:31 UTC (rev 53363)
@@ -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
@@ -760,6 +760,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