diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-01-04 14:17:47 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-01-09 17:45:34 +0100 |
commit | 11dfde6e3e0cbe66fd24efb1ec95474bf26321e5 (patch) | |
tree | 73f292eb98cec8555560593c338cdbdac5253465 | |
parent | 7570499f1622857b3b7432cac7c300acfb12340a (diff) | |
download | mupdf-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.
-rw-r--r-- | source/html/html-layout.c | 1 |
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; |