mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
oops
This commit is contained in:
parent
cff18be4a1
commit
1660c605ba
@ -105,7 +105,7 @@ class _Canvas(QGraphicsRectItem):
|
||||
self.layout_canvas(block, x, y)
|
||||
|
||||
def layout_canvas(self, canvas, x, y):
|
||||
if canvas.max_y + y > self.max_y:
|
||||
if canvas.max_y + y > self.max_y and y > 0:
|
||||
self.is_full = True
|
||||
return
|
||||
canvas.setParentItem(self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user