[GRASS-SVN] r42617 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 20 18:56:17 EDT 2010
Author: martinl
Date: 2010-06-20 22:56:17 +0000 (Sun, 20 Jun 2010)
New Revision: 42617
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: r.mapcalc cannot be used in the model (see #1093)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py 2010-06-20 22:42:16 UTC (rev 42616)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py 2010-06-20 22:56:17 UTC (rev 42617)
@@ -1078,6 +1078,12 @@
# add action to canvas
width, height = self.canvas.GetSize()
+ if cmd[0] == 'r.mapcalc':
+ GMessage(parent = self,
+ message = _("Module r.mapcalc cannot be used in the model. "
+ "Use r.mapcalculator instead."))
+ return
+
action = ModelAction(self.model, cmd = cmd, x = width/2, y = height/2,
id = len(self.model.GetActions()) + 1)
overwrite = self.model.GetProperties().get('overwrite', None)
More information about the grass-commit
mailing list