diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-10-14 14:50:56 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-10-14 14:50:56 +0200 |
commit | 4ef5e67c4165a8fbb4ec96c421f958fc7ec94ca1 (patch) | |
tree | 823869d8771c3401dadd7994fccdc0dd5bbff2da /platform | |
parent | 992e8385e2b00780fabf89e9f4b11f98c07da3f1 (diff) | |
download | mupdf-4ef5e67c4165a8fbb4ec96c421f958fc7ec94ca1.tar.xz |
gl: Do document layout before loading outline, to prevent laying out twice.
Loading the outline automatically triggers a layout.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/gl/gl-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c index e1d2ccd2..bd7758af 100644 --- a/platform/gl/gl-main.c +++ b/platform/gl/gl-main.c @@ -1409,13 +1409,13 @@ int main(int argc, char **argv) } } + fz_layout_document(ctx, doc, layout_w, layout_h, layout_em); + outline = fz_load_outline(ctx, doc); pdf = pdf_specifics(ctx, doc); if (pdf) pdf_enable_js(ctx, pdf); - fz_layout_document(ctx, doc, layout_w, layout_h, layout_em); - render_page(); update_title(); shrinkwrap(); |