From 12bc35051b0b71b4bfd7e393f71e6d1a5b7ead5b Mon Sep 17 00:00:00 2001 From: Tomas Zigo <50632337+tmszi@users.noreply.github.com> Date: Tue, 26 Sep 2023 13:40:47 +0200 Subject: [PATCH] wxGUI/iclass: fix zoom to scatter plot extend (#3184) --- gui/wxpython/iscatt/plots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/wxpython/iscatt/plots.py b/gui/wxpython/iscatt/plots.py index 08996137779..2a3d14341a4 100644 --- a/gui/wxpython/iscatt/plots.py +++ b/gui/wxpython/iscatt/plots.py @@ -619,7 +619,8 @@ def ContexMenu(self, event): def ShowMenu(self, menu): self.plot.PopupMenu(menu) menu.Destroy() - self.plot.ReleaseMouse() + if self.plot.HasCapture(): + self.plot.ReleaseMouse() class PolygonDrawer: