From 9564d1c80c5c7a8b37fb8c1e29bd9b425873ca2b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 15 Apr 2015 17:47:52 +0200 Subject: epub: Tighten the comparison for when an image is on the current page. This solves the issue with slivers of images appearing in the margin at the bottom of the previous page. --- source/html/html-layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/html') diff --git a/source/html/html-layout.c b/source/html/html-layout.c index 75ee3c35..2d8abaa6 100644 --- a/source/html/html-layout.c +++ b/source/html/html-layout.c @@ -675,7 +675,7 @@ static void draw_flow_box(fz_context *ctx, fz_html *box, float page_top, float p { if (node->type == FLOW_IMAGE) { - if (node->y > page_bot || node->y + node->h < page_top) + if (node->y >= page_bot || node->y + node->h <= page_top) continue; } else -- cgit v1.2.3