diff options
Diffstat (limited to 'libqpdf/QPDFAcroFormDocumentHelper.cc')
-rw-r--r-- | libqpdf/QPDFAcroFormDocumentHelper.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/QPDFAcroFormDocumentHelper.cc b/libqpdf/QPDFAcroFormDocumentHelper.cc index 2bb52f44..811570b5 100644 --- a/libqpdf/QPDFAcroFormDocumentHelper.cc +++ b/libqpdf/QPDFAcroFormDocumentHelper.cc @@ -748,8 +748,7 @@ QPDFAcroFormDocumentHelper::adjustAppearanceStream( auto existing_old = subdict.getKey(old_key); if (!existing_old.isNull()) { QTC::TC("qpdf", "QPDFAcroFormDocumentHelper ap rename"); - subdict.replaceKey(new_key, existing_old); - subdict.removeKey(old_key); + subdict.replaceKey(new_key, existing_old).removeKey(old_key); } } } |