Skip to content

Commit

Permalink
wxGUI/mapdisp: fix double click on the overlays in the 3D view (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored and petrasovaa committed Sep 3, 2020
1 parent 8c3585b commit 0ccbd5e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions gui/wxpython/mapdisp/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,12 +1215,13 @@ def _activateOverlay(self, overlayId):
:param overlayId: id of overlay
"""
dlg = self.decorations[overlayId].dialog
if dlg.IsShown():
dlg.SetFocus()
dlg.Raise()
else:
dlg.Show()
if overlayId in self.decorations:
dlg = self.decorations[overlayId].dialog
if dlg.IsShown():
dlg.SetFocus()
dlg.Raise()
else:
dlg.Show()

def RemoveOverlay(self, overlayId):
"""Hide overlay.
Expand Down

0 comments on commit 0ccbd5e

Please sign in to comment.