diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-08-21 16:54:23 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-08-21 17:20:10 +0200 |
commit | bf67596f71774d9b854b0c988f3e1f9e66731717 (patch) | |
tree | 483ca92ebba8486c1128a02dd09f89e125be493d /source/fitz | |
parent | bdbbea6d8868489391c29a9b2e84902e02e5058b (diff) | |
download | mupdf-bf67596f71774d9b854b0c988f3e1f9e66731717.tar.xz |
Make fz_stext_block and fz_stext_line double linked lists.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/stext-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/stext-device.c b/source/fitz/stext-device.c index 2d8a0b29..b4532d8b 100644 --- a/source/fitz/stext-device.c +++ b/source/fitz/stext-device.c @@ -72,6 +72,7 @@ static fz_stext_block * add_block_to_page(fz_context *ctx, fz_stext_page *page) { fz_stext_block *block = fz_pool_alloc(ctx, page->pool, sizeof *page->first_block); + block->prev = page->last_block; if (!page->first_block) page->first_block = page->last_block = block; else @@ -109,6 +110,7 @@ static fz_stext_line * add_line_to_block(fz_context *ctx, fz_stext_page *page, fz_stext_block *block, const fz_point *dir, int wmode) { fz_stext_line *line = fz_pool_alloc(ctx, page->pool, sizeof *block->u.t.first_line); + line->prev = block->u.t.last_line; if (!block->u.t.first_line) block->u.t.first_line = block->u.t.last_line = line; else |