[GRASS-SVN] r57439 - grass/trunk/gui/wxpython/mapwin

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 9 01:26:52 PDT 2013


Author: annakrat
Date: 2013-08-09 01:26:52 -0700 (Fri, 09 Aug 2013)
New Revision: 57439

Modified:
   grass/trunk/gui/wxpython/mapwin/decorations.py
Log:
wxGUI: fix closing legend dialog in 3d mode

Modified: grass/trunk/gui/wxpython/mapwin/decorations.py
===================================================================
--- grass/trunk/gui/wxpython/mapwin/decorations.py	2013-08-09 08:11:54 UTC (rev 57438)
+++ grass/trunk/gui/wxpython/mapwin/decorations.py	2013-08-09 08:26:52 UTC (rev 57439)
@@ -318,10 +318,11 @@
             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)"""



More information about the grass-commit mailing list