summaryrefslogtreecommitdiff
path: root/source/html/html-doc.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-07-20 20:04:17 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-03-22 14:58:01 +0100
commit4987023bc163939687c2ceed2f7b2a2503893fb7 (patch)
tree1561946bccf4fb8b5dd60a7a0fa037884318f1da /source/html/html-doc.c
parentf11c41bd07e0015cf144f50e3a3ccdbd3844f8a1 (diff)
downloadmupdf-4987023bc163939687c2ceed2f7b2a2503893fb7.tar.xz
html: Keep 'b' instead of 'h' in boxes.
Diffstat (limited to 'source/html/html-doc.c')
-rw-r--r--source/html/html-doc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/html-doc.c b/source/html/html-doc.c
index 8cfa233f..c43c7f3c 100644
--- a/source/html/html-doc.c
+++ b/source/html/html-doc.c
@@ -56,7 +56,7 @@ static int
htdoc_count_pages(fz_context *ctx, fz_document *doc_)
{
html_document *doc = (html_document*)doc_;
- int count = ceilf(doc->html->root->h / doc->html->page_h);
+ int count = ceilf(doc->html->root->b / doc->html->page_h);
return count;
}