summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-04-21 14:12:22 +0100
committerRobin Watts <robin.watts@artifex.com>2012-04-21 14:12:22 +0100
commitd8b7ac523b9869fd869621843725fd7fa60647cc (patch)
tree8c6b3e54f01f818059082d20da146bdb9cacd183 /pdf
parent3f891013ab59b617f6c8c2a486446d3ed7d0e340 (diff)
downloadmupdf-d8b7ac523b9869fd869621843725fd7fa60647cc.tar.xz
Correct mistake in fz_meta.
We were mapping from one enum range to another, and then using the unmapped value.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf_xref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c
index 70cbd9de..89333107 100644
--- a/pdf/pdf_xref.c
+++ b/pdf/pdf_xref.c
@@ -1236,7 +1236,7 @@ static int pdf_meta(fz_document *doc_, int key, void *ptr, int size)
default:
return 0;
}
- return pdf_has_permission(doc, size);
+ return pdf_has_permission(doc, i);
}
case FZ_META_INFO:
{