[GRASS-SVN] r32792 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 15 16:41:16 EDT 2008
Author: martinl
Date: 2008-08-15 16:41:16 -0400 (Fri, 15 Aug 2008)
New Revision: 32792
Modified:
grass/branches/develbranch_6/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
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py 2008-08-15 20:39:12 UTC (rev 32791)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py 2008-08-15 20:41:16 UTC (rev 32792)
@@ -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