aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDF_Stream.cc')
-rw-r--r--libqpdf/QPDF_Stream.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/libqpdf/QPDF_Stream.cc b/libqpdf/QPDF_Stream.cc
index 480bb6e9..7ff7a1b8 100644
--- a/libqpdf/QPDF_Stream.cc
+++ b/libqpdf/QPDF_Stream.cc
@@ -124,8 +124,9 @@ QPDF_Stream::QPDF_Stream(
"object for dictionary");
}
setDescription(
- qpdf, qpdf->getFilename() + ", stream object " + og.unparse(' '));
- this->parsed_offset = offset;
+ qpdf,
+ qpdf->getFilename() + ", stream object " + og.unparse(' '),
+ offset);
}
std::shared_ptr<QPDFObject>
@@ -282,9 +283,10 @@ QPDF_Stream::getStreamJSON(
}
void
-QPDF_Stream::setDescription(QPDF* qpdf, std::string const& description)
+QPDF_Stream::setDescription(
+ QPDF* qpdf, std::string const& description, qpdf_offset_t offset)
{
- this->QPDFValue::setDescription(qpdf, description);
+ this->QPDFValue::setDescription(qpdf, description, offset);
setDictDescription();
}