mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
Bug fix: don't clobber stream length with replaceDict
This commit is contained in:
parent
3eb77a7004
commit
ef955b04b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user