From 7231417c1e4cf1c8a5601a54a24e6366bee3a8c9 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Sat, 12 Jan 2013 11:49:25 +0000 Subject: 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. --- pdf/pdf_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf') 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) -- cgit v1.2.3