diff options
Diffstat (limited to 'fitz/obj_dict.c')
-rw-r--r-- | fitz/obj_dict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/obj_dict.c b/fitz/obj_dict.c index f5d3f733..d1cc22cc 100644 --- a/fitz/obj_dict.c +++ b/fitz/obj_dict.c @@ -48,7 +48,7 @@ fz_copydict(fz_obj *obj) fz_obj *new; int i; - if (!fz_isdict(obj)) + if (fz_isindirect(obj) || !fz_isdict(obj)) fz_throw("assert: not a dict (%s)", fz_objkindstr(obj)); new = fz_newdict(fz_dictlen(obj)); |