summaryrefslogtreecommitdiff
path: root/source/html/html-doc.c
diff options
context:
space:
mode:
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;
}