summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-01-04 14:17:47 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-01-09 17:45:34 +0100
commit11dfde6e3e0cbe66fd24efb1ec95474bf26321e5 (patch)
tree73f292eb98cec8555560593c338cdbdac5253465 /source/html
parent7570499f1622857b3b7432cac7c300acfb12340a (diff)
downloadmupdf-11dfde6e3e0cbe66fd24efb1ec95474bf26321e5.tar.xz
epub: Reset old line breaks before choosing new ones.
This was causing problems when laying out a document multiple times, where old line breaks taken would be sticky.
Diffstat (limited to 'source/html')
-rw-r--r--source/html/html-layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 76b4a1cf..f06e6cbd 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -1250,6 +1250,7 @@ static void layout_flow(fz_context *ctx, fz_html_box *box, fz_html_box *top, flo
for (node = box->flow_head; node; node = node->next)
{
+ node->breaks_line = 0; /* reset line breaks from previous layout */
if (node->type == FLOW_IMAGE)
{
float w = 0, h = 0;