[bugfix] prevent error on mousewheel zoom outside axis

This commit is contained in:
Marcel Paffrath 2017-08-14 13:56:08 +02:00
parent fda9de5738
commit 100a39afd9

View File

@ -1910,6 +1910,9 @@ class PickDlg(QDialog):
def scrollZoom(self, gui_event, factor=2.): def scrollZoom(self, gui_event, factor=2.):
if not gui_event.xdata or not gui_event.ydata:
return
self.updateCurrentLimits() self.updateCurrentLimits()
if gui_event.button == 'up': if gui_event.button == 'up':