[GRASS-SVN] r30978 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 14 03:50:15 EDT 2008
Author: martinl
Date: 2008-04-14 03:50:15 -0400 (Mon, 14 Apr 2008)
New Revision: 30978
Modified:
grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI (wxgui): do not crash when loading older gxw workspace (ignore tag 'selected')
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2008-04-14 07:30:47 UTC (rev 30977)
+++ grass/trunk/gui/wxpython/wxgui.py 2008-04-14 07:50:15 UTC (rev 30978)
@@ -619,10 +619,13 @@
lopacity=layer['opacity'],
lcmd=layer['cmd'],
lgroup=layer['group'])
- if layer['selected']:
- selected.append((maptree, newItem))
- else:
- maptree.SelectItem(newItem, select=False)
+
+ # tag 'selected' added 2008/04
+ if layer.has_key('selected'):
+ if layer['selected']:
+ selected.append((maptree, newItem))
+ else:
+ maptree.SelectItem(newItem, select=False)
for maptree, layer in selected:
if not maptree.IsSelected(layer):
More information about the grass-commit
mailing list