summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-10-07 15:22:10 +0100
committerRobin Watts <robin.watts@artifex.com>2016-10-07 16:56:46 +0100
commit858b661a14521840d6428c1e4b9d3a0e2a677c1f (patch)
tree3cf5c1418ec00f4ae08c4b92b4f3d5ac1bf4e2a1
parentfb6ccf6b0cd998ac7d8c1dbb65fcf4c20c1ad970 (diff)
downloadmupdf-858b661a14521840d6428c1e4b9d3a0e2a677c1f.tar.xz
Ensure we always layout the document before loading the outlines.
Intended as a fix for bug 697123, but the problem turns out to be something else entirely. Nonetheless, this is worth having.
-rw-r--r--source/fitz/document.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/document.c b/source/fitz/document.c
index 116f38d8..54245f2c 100644
--- a/source/fitz/document.c
+++ b/source/fitz/document.c
@@ -196,6 +196,7 @@ fz_has_permission(fz_context *ctx, fz_document *doc, fz_permission p)
fz_outline *
fz_load_outline(fz_context *ctx, fz_document *doc)
{
+ fz_ensure_layout(ctx, doc);
if (doc && doc->load_outline)
return doc->load_outline(ctx, doc);
return NULL;