浏览代码

wxGUI: quick fix fo addind text decoration when legend is active

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55016 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 年之前
父节点
当前提交
f3170a5141
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      gui/wxpython/mapdisp/frame.py

+ 2 - 1
gui/wxpython/mapdisp/frame.py

@@ -1319,8 +1319,9 @@ class MapFrame(SingleMapFrame):
         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