[GRASS-SVN] r36321 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 11 00:45:57 EDT 2009
Author: cmbarton
Date: 2009-03-11 00:45:57 -0400 (Wed, 11 Mar 2009)
New Revision: 36321
Modified:
grass/trunk/gui/wxpython/gui_modules/colorrules.py
Log:
Fix preview for color rules dialog
Modified: grass/trunk/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/colorrules.py 2009-03-11 04:43:16 UTC (rev 36320)
+++ grass/trunk/gui/wxpython/gui_modules/colorrules.py 2009-03-11 04:45:57 UTC (rev 36321)
@@ -517,6 +517,7 @@
if self.elem == 'cell':
cmdlist = ['d.rast',
'map=%s' % self.inmap]
+ ltype = 'raster'
# find existing color table and copy to temp file
try:
@@ -531,20 +532,20 @@
# vector
elif self.elem == 'vector':
cmdlist = ['d.vect',
- '-a',
- '--q',
+ '-a',
'map=%s' % self.inmap,
- 'rgb_column=%s' % self.vect['rgb'],
- 'type=point,line,boundary,area,face']
+ 'rgb_column=%s' % self.vect["rgb"],
+ 'type=point,line,boundary,area']
+ ltype = 'vector'
else:
return
if not self.layer:
- self.layer = self.Map.AddLayer(type="command", name='preview', command=[cmdlist],
+ self.layer = self.Map.AddLayer(type=ltype, name='preview', command=cmdlist,
l_active=True, l_hidden=False, l_opacity=1.0,
l_render=False)
else:
- self.layer.SetCmd([cmdlist])
+ self.layer.SetCmd(cmdlist)
# apply new color table and display preview
self.CreateColorTable(force=True)
More information about the grass-commit
mailing list