mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5889 (version 0.7.3 for Macintosh - ZeroDivisionError:float division)
This commit is contained in:
parent
0f408cce58
commit
caa451213e
@ -93,6 +93,8 @@ class CoverView(QWidget): # {{{
|
||||
self._current_pixmap_size = val
|
||||
|
||||
def do_layout(self):
|
||||
if self.rect().width() == 0 or self.rect().height() == 0:
|
||||
return
|
||||
pixmap = self.pixmap
|
||||
pwidth, pheight = pixmap.width(), pixmap.height()
|
||||
self.pwidth, self.pheight = fit_image(pwidth, pheight,
|
||||
|
Loading…
x
Reference in New Issue
Block a user