summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-06-15 15:58:14 +0200
committerm-holger <m-holger@kubitscheck.org>2023-06-15 16:49:50 +0200
commitae19d703f4022475bed2576b38b3c74548cafd10 (patch)
treef7e65e2afe59074cf651fd9ba4669b3bc403465e /libqpdf/QPDFJob.cc
parentddc864511568506d3b4e4939d029a87f19067919 (diff)
downloadqpdf-ae19d703f4022475bed2576b38b3c74548cafd10.tar.zst
Ensure copied annotations are fixed (fixes #600)
Case where pages from a main input without /AcroForm key were duplicated was omitted
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 4c7fdd04..d254f338 100644
--- a/libqpdf/QPDFJob.cc
+++ b/libqpdf/QPDFJob.cc
@@ -2496,7 +2496,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) {