From b0d3b4756372dc19d0e8595550a2593a0afefa3c Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 16 Sep 2016 20:10:46 +0100 Subject: Correct assertion in pdf-store. We can use names as keys for colorspaces. These are not bound to a particular document. --- source/pdf/pdf-store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf') 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 */ -- cgit v1.2.3