diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-06-25 19:55:45 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-06-25 19:55:45 +0200 |
commit | 0c7c7e4ba485fd39f5b6d41fa2924c607d2eeda0 (patch) | |
tree | 2aff155bc6bac1e5a748262203a18c45096020c7 /libqpdf/QPDF_optimization.cc | |
parent | 25aff0bd52b0382b9349c81aaabc2fde51528923 (diff) | |
download | qpdf-0c7c7e4ba485fd39f5b6d41fa2924c607d2eeda0.tar.zst |
Track whether certain page modifying methods have been called
We need to know whether pushInheritedAttributesToPage or getAllPages
have been called when generating JSON output. When reading the JSON
back in, we have to call the same methods so that object numbers will
line up properly.
Diffstat (limited to 'libqpdf/QPDF_optimization.cc')
-rw-r--r-- | libqpdf/QPDF_optimization.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libqpdf/QPDF_optimization.cc b/libqpdf/QPDF_optimization.cc index da0db663..1fd6da6f 100644 --- a/libqpdf/QPDF_optimization.cc +++ b/libqpdf/QPDF_optimization.cc @@ -162,6 +162,7 @@ QPDF::pushInheritedAttributesToPage(bool allow_changes, bool warn_skipped_keys) " pushing inherited attributes to pages"); } this->m->pushed_inherited_attributes_to_pages = true; + this->m->ever_pushed_inherited_attributes_to_pages = true; } void |