diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2017-03-21 15:53:01 -0400 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2017-03-22 18:29:42 -0400 |
commit | 546e1fce1b1556f56860a46f326094b997a3237c (patch) | |
tree | 1bdf70ae60a0a84daa1a6e37e3cc04d612e38b49 /source/html/html-doc.c | |
parent | ad65190db33e7024b71cd21a6ea1483940f0bf92 (diff) | |
download | mupdf-546e1fce1b1556f56860a46f326094b997a3237c.tar.xz |
Update fz_new_page.
Move this into the same style as fz_new_document and
fz_new_image.
Diffstat (limited to 'source/html/html-doc.c')
-rw-r--r-- | source/html/html-doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/html-doc.c b/source/html/html-doc.c index 5802e460..d9d7d27f 100644 --- a/source/html/html-doc.c +++ b/source/html/html-doc.c @@ -115,7 +115,7 @@ static fz_page * htdoc_load_page(fz_context *ctx, fz_document *doc_, int number) { html_document *doc = (html_document*)doc_; - html_page *page = fz_new_page(ctx, sizeof *page); + html_page *page = fz_new_page(ctx, html_page); page->super.bound_page = htdoc_bound_page; page->super.run_page_contents = htdoc_run_page; page->super.load_links = htdoc_load_links; |