From 100a39afd95d6e914d029e356b622e551087952d Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 14 Aug 2017 13:56:08 +0200 Subject: [PATCH] [bugfix] prevent error on mousewheel zoom outside axis --- pylot/core/util/widgets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 1d42ce7a..c76480f6 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1910,6 +1910,9 @@ class PickDlg(QDialog): def scrollZoom(self, gui_event, factor=2.): + if not gui_event.xdata or not gui_event.ydata: + return + self.updateCurrentLimits() if gui_event.button == 'up':