mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e365da1dc2
commit
44eb122aba
@ -392,7 +392,7 @@ PDFDoc_append(PDFDoc *self, PyObject *args) {
|
|||||||
for (auto src : docs) total_pages_to_append += src->GetPages().GetCount();
|
for (auto src : docs) total_pages_to_append += src->GetPages().GetCount();
|
||||||
unsigned base_page_index = dest->GetPages().GetCount();
|
unsigned base_page_index = dest->GetPages().GetCount();
|
||||||
#if PODOFO_VERSION > PODOFO_MAKE_VERSION(0, 10, 0)
|
#if PODOFO_VERSION > PODOFO_MAKE_VERSION(0, 10, 0)
|
||||||
dest->GetPages().CreatePagesAt(base_page_index, Rect(), total_pages_to_append);
|
dest->GetPages().CreatePagesAt(base_page_index, total_pages_to_append, Rect());
|
||||||
#else
|
#else
|
||||||
while (total_pages_to_append--) dest->GetPages().CreatePage(Rect());
|
while (total_pages_to_append--) dest->GetPages().CreatePage(Rect());
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user