Explorar o código

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á %!s(int64=12) %!d(string=hai) anos
pai
achega
f3170a5141
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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