[GRASS-SVN] r49004 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 30 06:58:28 EDT 2011


Author: martinl
Date: 2011-10-30 03:58:28 -0700 (Sun, 30 Oct 2011)
New Revision: 49004

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: fix loading action when cmd is not defined


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-10-30 09:58:43 UTC (rev 49003)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-10-30 10:58:28 UTC (rev 49004)
@@ -1796,8 +1796,8 @@
             width = UserSettings.Get(group='modeler', key='action', subkey=('size', 'width'))
         if not height:
             height = UserSettings.Get(group='modeler', key='action', subkey=('size', 'height'))
-
-        if cmd[0] in ('r.mapcalc', 'v.type'):
+        
+        if cmd and cmd[0] in ('r.mapcalc', 'v.type'):
             cmd[0] += '_wrapper'
         
         if cmd:



More information about the grass-commit mailing list