diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/html/html-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c index 0a6e9970..fdabe93b 100644 --- a/source/html/html-layout.c +++ b/source/html/html-layout.c @@ -1831,6 +1831,8 @@ detect_flow_directionality(fz_context *ctx, fz_pool *pool, uni_buf *buffer, fz_b break; } + end = end->next; + if (broken) break; @@ -1851,8 +1853,6 @@ detect_flow_directionality(fz_context *ctx, fz_pool *pool, uni_buf *buffer, fz_b text += fz_chartorune(&rune, text); buffer->data[buffer->len++] = rune; } - - end = end->next; } /* Detect directionality for the buffer */ |