2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-31 17:30:54 +00:00

Bug fix: don't clobber stream length with replaceDict

This commit is contained in:
Jay Berkenbilt 2022-05-20 11:07:03 -04:00
parent 3eb77a7004
commit ef955b04b5

View File

@ -746,12 +746,6 @@ QPDF_Stream::replaceDict(QPDFObjectHandle const& new_dict)
{
this->stream_dict = new_dict;
setDictDescription();
QPDFObjectHandle length_obj = this->stream_dict.getKey("/Length");
if (length_obj.isInteger()) {
this->length = QIntC::to_size(length_obj.getUIntValue());
} else {
this->length = 0;
}
}
void