diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-04-07 14:27:48 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-04-07 13:35:07 +0100 |
commit | b8eb55a488aa9dc6884e01b06e948faf1f83012d (patch) | |
tree | afce0b2a0e4bdc375662d65628988257602da611 /include | |
parent | 743b839e42dc76906ba0be0ff0b3bcb132ac5922 (diff) | |
download | mupdf-b8eb55a488aa9dc6884e01b06e948faf1f83012d.tar.xz |
Trigger default layout in fz_document layer.
Trigger the default layout when needed, but only if no manual layout has
been done. This avoids doing a pointless double layout (once with default
when loading the document, then with the manual layout call with the
desired layout options).
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h index d19b3661..f633fdbe 100644 --- a/include/mupdf/fitz/document.h +++ b/include/mupdf/fitz/document.h @@ -67,6 +67,7 @@ struct fz_document_s fz_document_load_page_fn *load_page; fz_document_meta_fn *meta; fz_document_write_fn *write; + int did_layout; }; typedef fz_document *(fz_document_open_fn)(fz_context *ctx, const char *filename); |