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 /include | |
parent | bdbbea6d8868489391c29a9b2e84902e02e5058b (diff) | |
download | mupdf-bf67596f71774d9b854b0c988f3e1f9e66731717.tar.xz |
Make fz_stext_block and fz_stext_line double linked lists.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/structured-text.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mupdf/fitz/structured-text.h b/include/mupdf/fitz/structured-text.h index 4386fd31..cb9dfe5b 100644 --- a/include/mupdf/fitz/structured-text.h +++ b/include/mupdf/fitz/structured-text.h @@ -62,7 +62,7 @@ enum }; /* - A text block is a list of lines of text, or an image. + A text block is a list of lines of text (typically a paragraph), or an image. */ struct fz_stext_block_s { @@ -72,7 +72,7 @@ struct fz_stext_block_s struct { fz_stext_line *first_line, *last_line; } t; struct { fz_matrix transform; fz_image *image; } i; } u; - fz_stext_block *next; + fz_stext_block *prev, *next; }; /* @@ -84,7 +84,7 @@ struct fz_stext_line_s fz_point dir; /* normalized direction of baseline */ fz_rect bbox; fz_stext_char *first_char, *last_char; - fz_stext_line *next; + fz_stext_line *prev, *next; }; /* |