diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-05-29 12:57:41 +0100 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-05-29 13:03:21 +0100 |
commit | 2e7007ca39bcea9b7688f6cc5cfd6bb43eb8630c (patch) | |
tree | 6f7923bf7616e51859f4c0f89a8b08c029cd778c /apps | |
parent | c630e8e213f5b697b3b78989ba866fed9dd0d45f (diff) | |
download | mupdf-2e7007ca39bcea9b7688f6cc5cfd6bb43eb8630c.tar.xz |
Access the xref table via an interface
Avoid all direct access to the xref table so that the impementation can
be altered to add new features
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfshow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/pdfshow.c b/apps/pdfshow.c index 7ccfd50d..02cf6dbb 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -161,7 +161,8 @@ static void showgrep(char *filename) len = pdf_count_objects(doc); for (i = 0; i < len; i++) { - if (doc->table[i].type == 'n' || doc->table[i].type == 'o') + pdf_xref_entry *entry = pdf_get_xref_entry(doc, i); + if (entry->type == 'n' || entry->type == 'o') { fz_try(ctx) { |