summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/html/html-layout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index d3a0c90f..a0d188d9 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -1169,7 +1169,10 @@ static void layout_line(fz_context *ctx, float indent, float page_w, float line_
if (node->type == FLOW_IMAGE)
node->y = y + baseline - node->h;
else
+ {
node->y = y + baseline + va;
+ node->h = node->box->em;
+ }
}
fz_free(ctx, reorder);