[GRASS-SVN] r30222 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 17 21:33:19 EST 2008
Author: cmbarton
Date: 2008-02-17 21:33:19 -0500 (Sun, 17 Feb 2008)
New Revision: 30222
Modified:
grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
Log:
Fix map selector to select Raster 3D maps for r3.mapcalc
Modified: grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py 2008-02-18 02:29:22 UTC (rev 30221)
+++ grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py 2008-02-18 02:33:19 UTC (rev 30222)
@@ -108,8 +108,10 @@
indx = self.funct_list.index('nsres()') +1
self.funct_list.insert(indx, 'tbres()')
maplabel = 'volume'
+ element = 'rast3d'
else:
maplabel = 'map'
+ element = 'cell'
#
# Buttons
@@ -184,7 +186,7 @@
self.newmaptxt = wx.TextCtrl(self, wx.ID_ANY, size=(250,-1))
self.mapsellabel = wx.StaticText(self, -1, 'Insert existing %s' % maplabel)
self.mapselect = gselect.Select(self, wx.ID_ANY, size=(250,-1),
- type='cell', multiple=False)
+ type=element, multiple=False)
self.functlabel = wx.StaticText(self, -1, 'Insert mapcalc function')
self.function = wx.ComboBox(self, wx.ID_ANY, "", (-1,-1),
(250, -1), self.funct_list, wx.CB_DROPDOWN
More information about the grass-commit
mailing list