summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-09-16 20:10:46 +0100
committerRobin Watts <robin.watts@artifex.com>2016-09-16 20:12:46 +0100
commitb0d3b4756372dc19d0e8595550a2593a0afefa3c (patch)
tree05cfef5aa8792d771d5d76afc540d6431e591fbd /source/pdf
parent86fdaa193759a698c8281e0ff11c797f040ae69f (diff)
downloadmupdf-b0d3b4756372dc19d0e8595550a2593a0afefa3c.tar.xz
Correct assertion in pdf-store.
We can use names as keys for colorspaces. These are not bound to a particular document.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-store.c b/source/pdf/pdf-store.c
index ccedbe0b..44575691 100644
--- a/source/pdf/pdf-store.c
+++ b/source/pdf/pdf-store.c
@@ -55,7 +55,7 @@ pdf_store_item(fz_context *ctx, pdf_obj *key, void *val, size_t itemsize)
{
void *existing;
- assert(pdf_is_array(ctx, key) || pdf_is_dict(ctx, key) || pdf_is_indirect(ctx, key));
+ assert(pdf_is_name(ctx, key) || pdf_is_array(ctx, key) || pdf_is_dict(ctx, key) || pdf_is_indirect(ctx, key));
existing = fz_store_item(ctx, key, val, itemsize, &pdf_obj_store_type);
assert(existing == NULL);
(void)existing; /* Silence warning in release builds */