summaryrefslogtreecommitdiff
path: root/apps/pdfclean.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-01-06 11:26:01 +0000
committerRobin Watts <robin@ghostscript.com>2012-01-06 13:49:24 +0000
commit3a7c49e637e8e1a580ecacae7558671d05ae0979 (patch)
tree619d4fe83e4837e7cc974f92f7f2e4c475e94e22 /apps/pdfclean.c
parent0213a985f871dc4ee273d79db0d4280eb9f44204 (diff)
downloadmupdf-3a7c49e637e8e1a580ecacae7558671d05ae0979.tar.xz
pdfclean; trailer dictionary expansion fix
The logic controlling whether to expand a trailer dictionary or not was reversed. Fixed here. Thanks to Zeniko for pointing this out.
Diffstat (limited to 'apps/pdfclean.c')
-rw-r--r--apps/pdfclean.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c
index dba60734..c114cffe 100644
--- a/apps/pdfclean.c
+++ b/apps/pdfclean.c
@@ -682,7 +682,7 @@ static void writexref(void)
fz_dict_puts(trailer, "ID", obj);
fprintf(out, "trailer\n");
- fz_fprint_obj(out, trailer, doexpand != 0);
+ fz_fprint_obj(out, trailer, doexpand == 0);
fprintf(out, "\n");
fz_drop_obj(trailer);