[GRASS-SVN] r63292 - in grass/trunk/gui/wxpython: . mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 29 13:48:13 PST 2014
Author: annakrat
Date: 2014-11-29 13:48:13 -0800 (Sat, 29 Nov 2014)
New Revision: 63292
Modified:
grass/trunk/gui/wxpython/mapdisp/main.py
grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: add set_raise_on_error(True) to prevent crashing gui when using grass.mapcalc
Modified: grass/trunk/gui/wxpython/mapdisp/main.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/main.py 2014-11-29 16:16:28 UTC (rev 63291)
+++ grass/trunk/gui/wxpython/mapdisp/main.py 2014-11-29 21:48:13 UTC (rev 63292)
@@ -349,6 +349,7 @@
if not globalvar.CheckWxVersion([2, 9]):
wx.InitAllImageHandlers()
+ grass.set_raise_on_error(True)
# actual use of StandaloneGrassInterface not yet tested
# needed for adding functionality in future
giface = DMonGrassInterface(None)
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2014-11-29 16:16:28 UTC (rev 63291)
+++ grass/trunk/gui/wxpython/wxgui.py 2014-11-29 21:48:13 UTC (rev 63292)
@@ -26,6 +26,7 @@
from core.utils import _
from grass.exceptions import Usage
+from grass.script.core import set_raise_on_error
import wx
try:
@@ -133,6 +134,7 @@
app = GMApp(workspaceFile)
# suppress wxPython logs
q = wx.LogNull()
+ set_raise_on_error(True)
app.MainLoop()
More information about the grass-commit
mailing list