summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-10-20 15:16:38 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-10-21 12:17:40 +0200
commit01f6954b88753d91e8dea7e369b3cc1eef75d423 (patch)
tree2a3d407dba4eab6ea29be4737db8794f24627031 /source/html
parent057d22283c013127e71fca88a46bd05886945576 (diff)
downloadmupdf-01f6954b88753d91e8dea7e369b3cc1eef75d423.tar.xz
epub: Set link height to the font size.
Diffstat (limited to 'source/html')
-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);