[poppler] poppler/XRef.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Dec 25 23:50:31 UTC 2020
poppler/XRef.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 8ba1a7c24f4e62783135face9a10b1fa6a764015
Author: William Bader <william at newspapersystems.com>
Date: Fri Dec 25 02:23:37 2020 +0000
Avoid testing xrefHasChanges each iteration in 407293bfb9108c9d9e2611a294b389ed9c593900
diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index c36c747a..5e816566 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -1216,9 +1216,10 @@ err:
if (!xRefStream && !xrefReconstructed) {
// Check if there has been any updated object, if there has been we can't reconstruct because that would mean losing the changes
bool xrefHasChanges = false;
- for (int i = 0; !xrefHasChanges && i < size; i++) {
+ for (int i = 0; i < size; i++) {
if (entries[i].getFlag(XRefEntry::Updated)) {
xrefHasChanges = true;
+ break;
}
}
if (xrefHasChanges) {
More information about the poppler
mailing list