summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-04-15 17:47:52 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-04-15 21:03:18 +0200
commit9564d1c80c5c7a8b37fb8c1e29bd9b425873ca2b (patch)
tree306e99f1a56a067e4d65d6f57dddacf97e1736f1 /source
parent1e0b6a6c60c6cb76245cb659458868f92ed0cda0 (diff)
downloadmupdf-9564d1c80c5c7a8b37fb8c1e29bd9b425873ca2b.tar.xz
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.
Diffstat (limited to 'source')
-rw-r--r--source/html/html-layout.c2
1 files changed, 1 insertions, 1 deletions
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