summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-07-03 00:57:21 +0200
committerTor Andersson <tor@ghostscript.com>2009-07-03 00:57:21 +0200
commitd4527bb7a327dee126cd4db47d7c41bcfb2fdcdf (patch)
tree6e256906dbc492090be4d000cf4dc272c25134a9
parent5b6e5ab98cdeb28f6409cae9f84af36e2c71320d (diff)
downloadmupdf-d4527bb7a327dee126cd4db47d7c41bcfb2fdcdf.tar.xz
Don't allow automatic resolving of references when pretty printing arrays.
-rw-r--r--fitz/obj_print.c4
1 files 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 --;