diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-14 11:15:58 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:52 +0100 |
commit | b3a9f7e5d838e095a5cf4f6d73a73316089190ec (patch) | |
tree | 96b8677b4d7d39037d007f2a1aa9e43972e32488 /source/html/handler.c | |
parent | 8758df6c290525eb2246977d84816d171e95309b (diff) | |
download | mupdf-b3a9f7e5d838e095a5cf4f6d73a73316089190ec.tar.xz |
html: Only draw the boxes and lines if they're on the current page.
Diffstat (limited to 'source/html/handler.c')
-rw-r--r-- | source/html/handler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/handler.c b/source/html/handler.c index 6b19304b..c3f9c3df 100644 --- a/source/html/handler.c +++ b/source/html/handler.c @@ -48,7 +48,7 @@ html_run_page(html_document *doc, html_page *page, fz_device *dev, const fz_matr { int n = ((intptr_t)page) - 1; printf("html: run page %d\n", n); - html_run_box(doc->ctx, doc->box, n * doc->page_h, dev, ctm); + html_run_box(doc->ctx, doc->box, n * doc->page_h, (n+1) * doc->page_h, dev, ctm); } html_document * |