Browse Source

wxGUI: layer contect menu: restore use standard r.colors interface

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55301 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 years ago
parent
commit
3176421b3c
1 changed files with 2 additions and 5 deletions
  1. 2 5
      gui/wxpython/lmgr/layertree.py

+ 2 - 5
gui/wxpython/lmgr/layertree.py

@@ -44,7 +44,6 @@ from vdigit.main          import haveVDigit
 from core.gcmd            import GWarning, GError
 from gui_core.toolbars    import BaseIcons
 from icons.icon           import MetaIcon
-from modules.colorrules   import RasterColorTable
 from web_services.dialogs import SaveWMSLayerDialog
 from lmgr.giface import LayerManagerGrassInterfaceForMapDisplay
 
@@ -655,10 +654,8 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
     def OnRasterColorTable(self, event):
         """!Set color table for raster map"""
         name = self.GetLayerInfo(self.layer_selected, key = 'maplayer').GetName()
-        ctable = RasterColorTable(self, layerTree = self)
-        ctable.SetMap(name)
-        ctable.Show()
-        ctable.CentreOnScreen()
+        GUI(parent = self).ParseCommand(['r.colors',
+                                         'map=%s' % name])
 
     def OnVectorColorTable(self, event):
         """!Set color table for vector map"""