ソースを参照

wxGUI: fix closing legend dialog in 3d mode

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57439 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 年 前
コミット
4651239240
1 ファイル変更5 行追加4 行削除
  1. 5 4
      gui/wxpython/mapwin/decorations.py

+ 5 - 4
gui/wxpython/mapwin/decorations.py

@@ -318,10 +318,11 @@ class DecorationDialog(wx.Dialog):
             self.DisconnectResizing()
 
     def DisconnectResizing(self):
-        try:
-            self._giface.GetMapWindow().mouseLeftUp.disconnect(self._resizeLegend)
-        except DispatcherKeyError:
-            pass
+        if not self.parent.IsPaneShown('3d'):
+            try:            
+                self._giface.GetMapWindow().mouseLeftUp.disconnect(self._resizeLegend)
+            except DispatcherKeyError:
+                pass
 
     def _resizeLegend(self, x, y):
         """!Update legend after drawing new legend size (moved from BufferedWindow)"""