[GRASS-SVN] r32494 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Aug 3 09:13:01 EDT 2008
Author: martinl
Date: 2008-08-03 09:13:01 -0400 (Sun, 03 Aug 2008)
New Revision: 32494
Modified:
grass/trunk/gui/wxpython/gui_modules/workspace.py
Log:
wxGUI: skip 'opacity' part of layer name when saving workispace file
Modified: grass/trunk/gui/wxpython/gui_modules/workspace.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/workspace.py 2008-08-03 13:00:59 UTC (rev 32493)
+++ grass/trunk/gui/wxpython/gui_modules/workspace.py 2008-08-03 13:13:01 UTC (rev 32494)
@@ -422,6 +422,9 @@
self.file.write('%s</group>\n' % (' ' * self.indent));
else:
name = mapTree.GetItemText(item)
+ # remove 'opacity' part
+ if '(opacity' in name:
+ name = name.split('(', -1)[0].strip()
opacity = maplayer.GetOpacity(float=True)
self.file.write('%s<layer type="%s" name="%s" checked="%d" opacity="%f">\n' % \
(' ' * self.indent, type, name, checked, opacity));
More information about the grass-commit
mailing list