summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2023-06-17 23:54:27 +0200
committerGitHub <noreply@github.com>2023-06-17 23:54:27 +0200
commit2ff7ac8a587a8849914ce0e11eb664d6ec1fc347 (patch)
treec0c22ca275018ae00257081e9f5b4e50f6b11702 /libqpdf/QPDFJob.cc
parent328a2d083eaa1a71bd47d22df0321cc8a302c511 (diff)
parentae19d703f4022475bed2576b38b3c74548cafd10 (diff)
downloadqpdf-2ff7ac8a587a8849914ce0e11eb664d6ec1fc347.tar.zst
Merge pull request #990 from m-holger/issue600
Ensure copied annotations are fixed (fixes #600)
Diffstat (limited to 'libqpdf/QPDFJob.cc')
-rw-r--r--libqpdf/QPDFJob.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc
index 3f3bcbb1..bb17ae84 100644
--- a/libqpdf/QPDFJob.cc
+++ b/libqpdf/QPDFJob.cc
@@ -2494,7 +2494,7 @@ QPDFJob::handlePageSpecs(QPDF& pdf, std::vector<std::unique_ptr<QPDF>>& page_hea
// the original file until all copy operations are completed, any foreign pages that
// conflict with original pages will be adjusted. If we copy any page from the original
// file more than once, that page would be in conflict with the previous copy of itself.
- if (other_afdh->hasAcroForm() && ((!this_file) || (!first_copy_from_orig))) {
+ if ((!this_file && other_afdh->hasAcroForm()) || !first_copy_from_orig) {
if (!this_file) {
QTC::TC("qpdf", "QPDFJob copy fields not this file");
} else if (!first_copy_from_orig) {