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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 15 10:05:30 EDT 2008


Author: martinl
Date: 2008-04-15 10:05:30 -0400 (Tue, 15 Apr 2008)
New Revision: 31006

Modified:
   grass/trunk/gui/wxpython/gui_modules/workspace.py
Log:
wxGUI (workspace): bugfix casting string value to bool


Modified: grass/trunk/gui/wxpython/gui_modules/workspace.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/workspace.py	2008-04-15 14:00:11 UTC (rev 31005)
+++ grass/trunk/gui/wxpython/gui_modules/workspace.py	2008-04-15 14:05:30 UTC (rev 31006)
@@ -60,9 +60,9 @@
             self.inDisplay = True
             self.displayIndex += 1
             self.displays.append({
-                "render"         : bool(attrs.get('render', False)),
+                "render"         : bool(int(attrs.get('render', "0"))),
                 "mode"           : int(attrs.get('mode', 0)),
-                "showCompExtent" : bool(attrs.get('showCompExtent', False))})
+                "showCompExtent" : bool(int(attrs.get('showCompExtent', "0")))})
             
         elif name == 'group':
             self.groupName    = attrs.get('name', None)



More information about the grass-commit mailing list