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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 15 16:43:15 EDT 2008


Author: martinl
Date: 2008-08-15 16:43:15 -0400 (Fri, 15 Aug 2008)
New Revision: 32793

Modified:
   grass/trunk/gui/wxpython/gui_modules/render.py
Log:
wxGUI fix trac #258, adding other layer than plain raster or vector (shaded relief, thematic vector etc.) returns an error
(merge from devbr6, r32792)


Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py	2008-08-15 20:41:16 UTC (rev 32792)
+++ grass/trunk/gui/wxpython/gui_modules/render.py	2008-08-15 20:43:15 UTC (rev 32793)
@@ -216,7 +216,10 @@
 
     def SetType(self, type):
         """Set layer type"""
-        if type not in ('raster', '3d-raster', 'vector', 'overlay', 'command'):
+        if type not in ('raster', '3d-raster', 'vector',
+                        'overlay', 'command',
+                        'shaded', 'rgb', 'his', 'rastarrow',
+                        'thememap', 'themechart'):
             raise gcmd.GStdError(_("Unsupported map layer type '%s'") % str(type))
         
         self.type = type



More information about the grass-commit mailing list