Browse Source

WxGUI command console will now recognize and run d.rast.leg

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48120 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 13 years ago
parent
commit
21bcc3b1ac
2 changed files with 3 additions and 2 deletions
  1. 1 0
      gui/wxpython/gui_modules/goutput.py
  2. 2 2
      gui/wxpython/gui_modules/render.py

+ 1 - 0
gui/wxpython/gui_modules/goutput.py

@@ -489,6 +489,7 @@ class GMConsole(wx.SplitterWindow):
                                  'd.legend'       : 'rastleg',
                                  'd.rast.arrow'   : 'rastarrow',
                                  'd.rast.num'     : 'rastnum',
+                                 'd.rast.leg'     : 'maplegend',
                                  'd.vect'         : 'vector',
                                  'd.thematic.area': 'thememap',
                                  'd.vect.chart'   : 'themechart',

+ 2 - 2
gui/wxpython/gui_modules/render.py

@@ -121,7 +121,7 @@ class Layer(object):
         layertypes = ('raster', 'rgb', 'his', 'shaded', 'rastarrow', 'rastnum',
                       'vector','thememap','themechart',
                       'grid', 'geodesic', 'rhumb', 'labels',
-                      'command', 'rastleg',
+                      'command', 'rastleg','maplegend',
                       'overlay')
         
         if self.type not in layertypes:
@@ -244,7 +244,7 @@ class Layer(object):
         """!Set layer type"""
         if type not in ('raster', '3d-raster', 'vector',
                         'overlay', 'command',
-                        'shaded', 'rgb', 'his', 'rastarrow', 'rastnum',
+                        'shaded', 'rgb', 'his', 'rastarrow', 'rastnum','maplegend',
                         'thememap', 'themechart', 'grid', 'labels',
                         'geodesic','rhumb'):
             raise gcmd.GException(_("Unsupported map layer type '%s'") % type)