[bugfix] prevent error on mousewheel zoom outside axis
This commit is contained in:
parent
fda9de5738
commit
100a39afd9
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user