From d4527bb7a327dee126cd4db47d7c41bcfb2fdcdf Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 3 Jul 2009 00:57:21 +0200 Subject: Don't allow automatic resolving of references when pretty printing arrays. --- fitz/obj_print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fitz/obj_print.c b/fitz/obj_print.c index 7cbcf709..d9bb174a 100644 --- a/fitz/obj_print.c +++ b/fitz/obj_print.c @@ -204,11 +204,11 @@ static void fmtdict(struct fmt *fmt, fz_obj *obj) fmtindent(fmt); fmtobj(fmt, key); fmtputc(fmt, ' '); - if (fz_isarray(val)) + if (!fz_isindirect(val) && fz_isarray(val)) fmt->indent ++; fmtobj(fmt, val); fmtputc(fmt, '\n'); - if (fz_isarray(val)) + if (!fz_isindirect(val) && fz_isarray(val)) fmt->indent --; } fmt->indent --; -- cgit v1.2.3