diff options
Diffstat (limited to 'libqpdf/QPDFPageObjectHelper.cc')
-rw-r--r-- | libqpdf/QPDFPageObjectHelper.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libqpdf/QPDFPageObjectHelper.cc b/libqpdf/QPDFPageObjectHelper.cc index 344ff15e..43c4eef6 100644 --- a/libqpdf/QPDFPageObjectHelper.cc +++ b/libqpdf/QPDFPageObjectHelper.cc @@ -1293,10 +1293,7 @@ QPDFPageObjectHelper::copyAnnotations( afdh->transformAnnotations( old_annots, new_annots, new_fields, old_fields, cm, from_qpdf, from_afdh); - for (auto const& f: new_fields) - { - afdh->addFormField(QPDFFormFieldObjectHelper(f)); - } + afdh->addAndRenameFormFields(new_fields); auto annots = this->oh.getKey("/Annots"); if (! annots.isArray()) { |