[GRASS-SVN] r36320 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 11 00:43:17 EDT 2009
Author: cmbarton
Date: 2009-03-11 00:43:16 -0400 (Wed, 11 Mar 2009)
New Revision: 36320
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py
Log:
Fix preview for color rules dialog
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py 2009-03-10 21:34:43 UTC (rev 36319)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py 2009-03-11 04:43:16 UTC (rev 36320)
@@ -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