[GRASS-SVN] r69448 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Sep 11 19:31:59 PDT 2016
Author: annakrat
Date: 2016-09-11 19:31:59 -0700 (Sun, 11 Sep 2016)
New Revision: 69448
Modified:
grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: connect signal to change overlays only when 3D is active
Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py 2016-09-12 01:39:31 UTC (rev 69447)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py 2016-09-12 02:31:59 UTC (rev 69448)
@@ -143,7 +143,6 @@
self.MapWindow2D.mapQueried.connect(self.Query)
self.MapWindow2D.overlayActivated.connect(self._activateOverlay)
self.MapWindow2D.overlayRemoved.connect(self.RemoveOverlay)
- self.MapWindow2D.overlayRemoved.connect(self.RemoveOverlay)
self._setUpMapWindow(self.MapWindow2D)
self.MapWindow2D.mouseHandlerUnregistered.connect(self.ResetPointer)
@@ -1325,7 +1324,7 @@
self.decorations[overlay.id] = overlay
overlay.overlayChanged.connect(lambda: self.MapWindow2D.UpdateMap(
render=False, renderVector=False))
- if self.MapWindow3D:
+ if self.IsPaneShown('3d'):
overlay.overlayChanged.connect(self.MapWindow3D.UpdateOverlays)
overlay.dialog = propwin
More information about the grass-commit
mailing list