[GRASS-SVN] r55016 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 12 04:40:14 PST 2013
Author: annakrat
Date: 2013-02-12 04:40:13 -0800 (Tue, 12 Feb 2013)
New Revision: 55016
Modified:
grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: quick fix fo addind text decoration when legend is active
Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py 2013-02-12 12:21:02 UTC (rev 55015)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py 2013-02-12 12:40:13 UTC (rev 55016)
@@ -1319,8 +1319,9 @@
self.MapWindow.mouse['use'] = 'pointer'
# untoggles button in add legend dialog
+ # FIXME: remove this mess
if self.dialogs['legend']:
- if hasattr(event ,'GetEventObject'):
+ if hasattr(event ,'GetEventObject') and hasattr(event.GetEventObject() ,'GetId'):
if event.GetEventObject().GetId() == \
self.dialogs['legend'].resizeBtn.GetId():
return
More information about the grass-commit
mailing list