From b3a9f7e5d838e095a5cf4f6d73a73316089190ec Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 14 Nov 2014 11:15:58 +0100 Subject: html: Only draw the boxes and lines if they're on the current page. --- source/html/handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/html/handler.c') 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 * -- cgit v1.2.3