[GRASS-SVN] r29958 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 5 10:54:22 EST 2008
Author: martinl
Date: 2008-02-05 10:54:21 -0500 (Tue, 05 Feb 2008)
New Revision: 29958
Modified:
grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: Fix bug in menu (calling module with argumentes)
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2008-02-05 15:14:51 UTC (rev 29957)
+++ grass/trunk/gui/wxpython/wxgui.py 2008-02-05 15:54:21 UTC (rev 29958)
@@ -409,10 +409,12 @@
layer = self.curr_page.maptree.layer_selected
name = self.curr_page.maptree.GetPyData(layer)[0]['maplayer'].name
type = self.curr_page.maptree.GetPyData(layer)[0]['type']
- if type == 'raster' and cmdlist[0][0] == 'r' and cmdlist[0][1] != '3':
- cmdlist.append(name) # TODO map/input=
- elif type == 'vector' and cmdlist[0][0] == 'v':
- cmdlist.append(name) # TODO map/input=
+ if len(cmdlist) == 1: # only if no paramaters given
+ if type == 'raster' and cmdlist[0][0] == 'r' and cmdlist[0][1] != '3':
+ cmdlist.append(name) # TODO map/input=
+ elif type == 'vector' and cmdlist[0][0] == 'v':
+ cmdlist.append(name) # TODO map/input=
+
return cmdlist
def RunMenuCmd(self, event):
More information about the grass-commit
mailing list