[GRASS-SVN] r49007 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 30 13:32:47 EDT 2011
Author: martinl
Date: 2011-10-30 10:32:47 -0700 (Sun, 30 Oct 2011)
New Revision: 49007
Modified:
grass/trunk/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI: fix indeces of dialog pages
Modified: grass/trunk/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2011-10-30 17:28:31 UTC (rev 49006)
+++ grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2011-10-30 17:32:47 UTC (rev 49007)
@@ -685,7 +685,7 @@
params = list()
result["variables"] = { 'flags' : list(),
'params' : params,
- 'idx' : idx }
+ 'idx' : idx }
for name, values in self.variables.iteritems():
gtype = values.get('type', 'string')
if gtype in ('raster', 'vector', 'mapset', 'file'):
@@ -741,7 +741,8 @@
'params': list(),
'idx' : idx }
result[name]['params'].append(p)
- idx += 1
+ if name in result:
+ idx += 1
self.variablesParams = result # record parameters
@@ -3887,7 +3888,7 @@
"""!Create for each parameterized module its own page"""
nameOrdered = [''] * len(self.params.keys())
for name, params in self.params.iteritems():
- nameOrdered[params['idx']] = name
+ nameOrdered[params['idx']] = name
for name in nameOrdered:
params = self.params[name]
panel = self._createPage(name, params)
More information about the grass-commit
mailing list