diff options
-rw-r--r-- | qpdf/fix-qdf.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qpdf/fix-qdf.cc b/qpdf/fix-qdf.cc index 83632f4d..4445fbd1 100644 --- a/qpdf/fix-qdf.cc +++ b/qpdf/fix-qdf.cc @@ -308,8 +308,7 @@ QdfFixer::checkObjId(std::string const& cur_obj_str) void QdfFixer::adjustOstreamXref() { - xref.pop_back(); - xref.push_back(QPDFXRefEntry(2, ostream_id, QIntC::to_int(ostream_idx++))); + xref.back() = QPDFXRefEntry(2, ostream_id, QIntC::to_int(ostream_idx++)); } void |