Fix #2020854 [local variable 'd' referenced before assignment calibre 6.18](https://bugs.launchpad.net/calibre/+bug/2020854)

This commit is contained in:
Kovid Goyal 2023-05-26 15:44:55 +05:30
parent dab71f54e3
commit a4464ef292
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -231,6 +231,7 @@ class CoverFlow(pictureflow.PictureFlow):
return self.minimumSize()
def wheelEvent(self, ev):
d = 0
if ev.angleDelta().x():
d = ev.angleDelta().x()
if ev.angleDelta().y():