summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/document.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-04-07 14:27:48 +0200
committerRobin Watts <robin.watts@artifex.com>2015-04-07 13:35:07 +0100
commitb8eb55a488aa9dc6884e01b06e948faf1f83012d (patch)
treeafce0b2a0e4bdc375662d65628988257602da611 /include/mupdf/fitz/document.h
parent743b839e42dc76906ba0be0ff0b3bcb132ac5922 (diff)
downloadmupdf-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/mupdf/fitz/document.h')
-rw-r--r--include/mupdf/fitz/document.h1
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);