From 2e7007ca39bcea9b7688f6cc5cfd6bb43eb8630c Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Wed, 29 May 2013 12:57:41 +0100 Subject: 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 --- apps/pdfshow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps') 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) { -- cgit v1.2.3