[GRASS-SVN] r32151 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 17 10:01:56 EDT 2008


Author: martinl
Date: 2008-07-17 10:01:56 -0400 (Thu, 17 Jul 2008)
New Revision: 32151

Modified:
   grass/trunk/gui/wxpython/gui_modules/workspace.py
Log:
wxGUI: fix loading workspace (group parent selection)


Modified: grass/trunk/gui/wxpython/gui_modules/workspace.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/workspace.py	2008-07-17 13:50:56 UTC (rev 32150)
+++ grass/trunk/gui/wxpython/gui_modules/workspace.py	2008-07-17 14:01:56 UTC (rev 32151)
@@ -67,8 +67,6 @@
         self.displayIndex = -1 # first display has index '0'
 
     def startElement(self, name, attrs):
-        self.inTag[name] = True
-
         if name == 'display':
             self.displayIndex += 1
 
@@ -204,10 +202,10 @@
             if self.inTag['nviz'] and self.inTag['lines']:
                 self.layerNviz['vector']['lines']['mode'] = {}
                 self.layerNviz['vector']['lines']['mode']['type'] = str(attrs.get('type', ''))
+
+        self.inTag[name] = True
         
     def endElement(self, name):
-        self.inTag[name] = False
-
         if name == 'group':
             self.groupName = self.groupChecked = None
 
@@ -282,6 +280,8 @@
             if self.inTag['nviz'] and self.inTag['lines']:
                 self.layerNviz['vector']['lines']['color'] = str(self.value)
 
+        self.inTag[name] = False
+
     def characters(self, ch):
         self.my_characters(ch)
 



More information about the grass-commit mailing list