mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #499
This commit is contained in:
parent
e7a465ce6e
commit
48b6246a6a
@ -395,6 +395,7 @@ class Document(QGraphicsScene):
|
||||
else:
|
||||
jb = self.objects[objid]
|
||||
self.link_map[objid] = (jb.refpage, jb.refobj)
|
||||
|
||||
|
||||
def back(self):
|
||||
oid = self.history.back()
|
||||
@ -458,9 +459,9 @@ class Document(QGraphicsScene):
|
||||
block = object_factory(self, object)
|
||||
if block is None:
|
||||
continue
|
||||
object_to_page_map[object.id] = len(pages) + 1
|
||||
while block.has_content:
|
||||
current_page.add_block(block)
|
||||
object_to_page_map[object.id] = len(pages) + 1
|
||||
if current_page.is_full:
|
||||
pages.append(current_page)
|
||||
current_page = Page(self.font_loader, self.logger, self.opts, width, height)
|
||||
|
Loading…
x
Reference in New Issue
Block a user