[GRASS-SVN] r69449 - grass/branches/releasebranch_7_2/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Sep 11 19:33:19 PDT 2016
Author: annakrat
Date: 2016-09-11 19:33:19 -0700 (Sun, 11 Sep 2016)
New Revision: 69449
Modified:
grass/branches/releasebranch_7_2/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: connect signal to change overlays only when 3D is active (merge from trunk, r69448)
Modified: grass/branches/releasebranch_7_2/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/mapdisp/frame.py 2016-09-12 02:31:59 UTC (rev 69448)
+++ grass/branches/releasebranch_7_2/gui/wxpython/mapdisp/frame.py 2016-09-12 02:33:19 UTC (rev 69449)
@@ -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