summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-30 18:35:27 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-30 18:35:27 +0000
commit7fe9ac6fa15b3b36327b7ff8c3d749495fbe9aab (patch)
tree8fe93272f21e94333e2b38b49dd4a040b933e83d /apps
parent14644a76caaf340b2f2dbdacbf8ac1daad7856da (diff)
downloadmupdf-7fe9ac6fa15b3b36327b7ff8c3d749495fbe9aab.tar.xz
Load outlines in viewer after pages to allow links to work.
In order for hyperlinks to work, we need to load the outlines after the pages tree.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfapp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index c701e350..cdb88e61 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -143,8 +143,6 @@ static void pdfapp_open_pdf(pdfapp_t *app, char *filename, int fd)
* Load meta information
*/
- app->outline = pdf_load_outline(app->xref);
-
info = fz_dict_gets(app->xref->trailer, "Info");
if (info)
{
@@ -176,6 +174,8 @@ static void pdfapp_open_pdf(pdfapp_t *app, char *filename, int fd)
}
app->pagecount = pdf_count_pages(app->xref);
+
+ app->outline = pdf_load_outline(app->xref);
}
static void pdfapp_open_xps(pdfapp_t *app, char *filename, int fd)