Skip to content

Commit

Permalink
Fix doc_compare returned boolean value reversed between 0.3 and 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alxckn authored and vslavik committed Jan 17, 2020
1 parent 4cba27c commit de241fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion diff-pdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ bool doc_compare(PopplerDocument *doc1, PopplerDocument *doc2,
if (g_verbose)
printf("%d of %d pages differ.\n", pages_differ, pages_total);

return (pages_differ > 0) || (pages1 != pages2 );
// are doc1 and doc1 the same?
return (pages_differ == 0) && (pages1 == pages2);
}


Expand Down

0 comments on commit de241fa

Please sign in to comment.