mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -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)
|
self.layout_canvas(block, x, y)
|
||||||
|
|
||||||
def layout_canvas(self, canvas, 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
|
self.is_full = True
|
||||||
return
|
return
|
||||||
canvas.setParentItem(self)
|
canvas.setParentItem(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user