Commit ef955b04b5cfd1042dc1751bb4c82d79aff89f46

Authored by Jay Berkenbilt
1 parent 3eb77a70

Bug fix: don't clobber stream length with replaceDict

Showing 1 changed file with 0 additions and 6 deletions
libqpdf/QPDF_Stream.cc
... ... @@ -746,12 +746,6 @@ QPDF_Stream::replaceDict(QPDFObjectHandle const& new_dict)
746 746 {
747 747 this->stream_dict = new_dict;
748 748 setDictDescription();
749   - QPDFObjectHandle length_obj = this->stream_dict.getKey("/Length");
750   - if (length_obj.isInteger()) {
751   - this->length = QIntC::to_size(length_obj.getUIntValue());
752   - } else {
753   - this->length = 0;
754   - }
755 749 }
756 750  
757 751 void
... ...