[GRASS-SVN] r54756 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 22 13:55:21 PST 2013
Author: annakrat
Date: 2013-01-22 13:55:20 -0800 (Tue, 22 Jan 2013)
New Revision: 54756
Modified:
grass/trunk/gui/wxpython/mapdisp/toolbars.py
Log:
wxGUI: quick fix for #1859
Modified: grass/trunk/gui/wxpython/mapdisp/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/toolbars.py 2013-01-22 19:02:27 UTC (rev 54755)
+++ grass/trunk/gui/wxpython/mapdisp/toolbars.py 2013-01-22 21:55:20 UTC (rev 54756)
@@ -87,8 +87,9 @@
self.toolId['3d'] = 1
else:
from nviz.main import errorMsg
- log.WriteCmdLog(_('3D view mode not available'))
- log.WriteWarning(_('Reason: %s') % str(errorMsg))
+ if self.parent.GetLayerManager():
+ log.WriteCmdLog(_('3D view mode not available'))
+ log.WriteWarning(_('Reason: %s') % str(errorMsg))
self.toolId['3d'] = -1
@@ -100,12 +101,13 @@
self.toolId['vdigit'] = 1
else:
from vdigit.main import errorMsg
- log.WriteCmdLog(_('Vector digitizer not available'))
- log.WriteWarning(_('Reason: %s') % errorMsg)
- log.WriteLog(_('Note that the wxGUI\'s vector digitizer is currently disabled '
- '(hopefully this will be fixed soon). '
- 'Please keep an eye out for updated versions of GRASS. '
- 'In the meantime you can use "v.digit" from the Develop Vector menu.'), wrap = 60)
+ if self.parent.GetLayerManager():
+ log.WriteCmdLog(_('Vector digitizer not available'))
+ log.WriteWarning(_('Reason: %s') % errorMsg)
+ log.WriteLog(_('Note that the wxGUI\'s vector digitizer is currently disabled '
+ '(hopefully this will be fixed soon). '
+ 'Please keep an eye out for updated versions of GRASS. '
+ 'In the meantime you can use "v.digit" from the Develop Vector menu.'), wrap = 60)
self.toolId['vdigit'] = -1
More information about the grass-commit
mailing list