diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-01-12 11:49:25 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-01-15 10:44:08 +0000 |
commit | 7231417c1e4cf1c8a5601a54a24e6366bee3a8c9 (patch) | |
tree | 9ca0b0e631484a0af3c620a03a4c435d6ae150c8 /pdf | |
parent | a242b4cf1123910c4dba18c75a77f28c5f6d8f33 (diff) | |
download | mupdf-7231417c1e4cf1c8a5601a54a24e6366bee3a8c9.tar.xz |
Bug 693545: Fix typo in previous commit.
When adding code to spot identical streams, I got the logic in
a test reversed as a result of a last minute change. Corrected here.
Thanks to zeniko for pointing this out.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_write.c b/pdf/pdf_write.c index 37a16b43..8823c100 100644 --- a/pdf/pdf_write.c +++ b/pdf/pdf_write.c @@ -620,7 +620,7 @@ static void removeduplicateobjs(pdf_document *xref, pdf_write_options *opts) sb = pdf_load_raw_renumbered_stream(xref, other, 0, other, 0); lena = fz_buffer_storage(ctx, sa, &dataa); lenb = fz_buffer_storage(ctx, sb, &datab); - if (lena != lenb && memcmp(dataa, datab, lena) == 0) + if (lena == lenb && memcmp(dataa, datab, lena) == 0) differ = 0; } fz_always(ctx) |