summaryrefslogtreecommitdiff
path: root/apps/pdfshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pdfshow.c')
-rw-r--r--apps/pdfshow.c3
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)
{