[GRASS-SVN] r46841 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 29 06:47:43 EDT 2011


Author: lucadelu
Date: 2011-06-29 03:47:43 -0700 (Wed, 29 Jun 2011)
New Revision: 46841

Modified:
   grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
Log:
I forgot to update the functions for raster3d, now I fix it

Modified: grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py	2011-06-29 10:46:21 UTC (rev 46840)
+++ grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py	2011-06-29 10:47:43 UTC (rev 46841)
@@ -110,10 +110,8 @@
             }
         
         if self.rast3d:
-            indx = self.funct_list.index('y()') +1
-            self.funct_list.insert(indx, 'z()')
-            indx = self.funct_list.index('nsres()') +1
-            self.funct_list.insert(indx, 'tbres()')
+            self.funct_dict['z()'] = 'z()'
+            self.funct_dict['tbres()'] = 'tbres()'
             element = 'rast3d'
         else:
             element = 'cell'
@@ -221,7 +219,7 @@
         self.functlabel = wx.StaticText(parent = self.panel, id = wx.ID_ANY,
                                         label = _('Insert mapcalc function'))
         self.function = wx.ComboBox(parent = self.panel, id = wx.ID_ANY, 
-                                    size = (250, -1), choices = self.funct_dict.keys(),
+                                    size = (250, -1), choices = sorted(self.funct_dict.keys()),
                                     style = wx.CB_DROPDOWN |
                                     wx.CB_READONLY | wx.TE_PROCESS_ENTER)
         



More information about the grass-commit mailing list