summaryrefslogtreecommitdiff
path: root/source/html/html-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/html/html-layout.c')
-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 78259ebb..8520c782 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -1620,7 +1620,7 @@ static void draw_flow_box(fz_context *ctx, fz_html_box *box, float page_top, flo
if (style->visibility == V_VISIBLE)
{
fz_matrix local_ctm = *ctm;
- fz_pre_translate(&local_ctm, node->x, node->y);
+ fz_pre_translate(&local_ctm, node->x, node->y - page_top);
fz_pre_scale(&local_ctm, node->w, node->h);
fz_fill_image(ctx, dev, node->content.image, &local_ctm, 1);
}