[GRASS-SVN] r65327 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 26 05:49:44 PDT 2015
Author: martinl
Date: 2015-05-26 05:49:44 -0700 (Tue, 26 May 2015)
New Revision: 65327
Modified:
grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: simplify query code (cosmetics)
Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py 2015-05-26 12:48:08 UTC (rev 65326)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py 2015-05-26 12:49:44 UTC (rev 65327)
@@ -1045,12 +1045,15 @@
cmd[-1].append("cats=%s" % ListOfCatsToRange(lcats))
if addLayer:
+ args = {}
if useId:
- return self.Map.AddLayer(ltype = 'vector', name = globalvar.QUERYLAYER, command = cmd,
- active = True, hidden = True, opacity = 1.0, render = True)
+ args['ltype'] = 'vector'
else:
- return self.Map.AddLayer(ltype = 'command', name = globalvar.QUERYLAYER, command = cmd,
- active = True, hidden = True, opacity = 1.0, render = True)
+ args['ltype'] = 'command'
+
+ return self.Map.AddLayer(name = globalvar.QUERYLAYER, command = cmd,
+ active = True, hidden = True, opacity = 1.0,
+ render = True, **args)
else:
return cmd
More information about the grass-commit
mailing list