diff options
Diffstat (limited to 'source/cbz/muimg.c')
-rw-r--r-- | source/cbz/muimg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c index f985d460..5c9b84bf 100644 --- a/source/cbz/muimg.c +++ b/source/cbz/muimg.c @@ -69,7 +69,7 @@ img_load_page(fz_context *ctx, img_document *doc, int number) if (number != 0) return NULL; - page = fz_new_page(ctx, img_page); + page = fz_new_derived_page(ctx, img_page); page->super.bound_page = (fz_page_bound_page_fn *)img_bound_page; page->super.run_page_contents = (fz_page_run_page_contents_fn *)img_run_page; @@ -91,7 +91,7 @@ img_lookup_metadata(fz_context *ctx, img_document *doc, const char *key, char *b static img_document * img_new_document(fz_context *ctx, fz_image *image) { - img_document *doc = fz_new_document(ctx, img_document); + img_document *doc = fz_new_derived_document(ctx, img_document); doc->super.drop_document = (fz_document_drop_fn *)img_drop_document; doc->super.count_pages = (fz_document_count_pages_fn *)img_count_pages; |