diff options
Diffstat (limited to 'libqpdf/OffsetInputSource.cc')
-rw-r--r-- | libqpdf/OffsetInputSource.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libqpdf/OffsetInputSource.cc b/libqpdf/OffsetInputSource.cc index c1ec4102..2923c388 100644 --- a/libqpdf/OffsetInputSource.cc +++ b/libqpdf/OffsetInputSource.cc @@ -51,7 +51,9 @@ OffsetInputSource::rewind() size_t OffsetInputSource::read(char* buffer, size_t length) { - return this->proxied->read(buffer, length); + size_t result = this->proxied->read(buffer, length); + this->setLastOffset(this->proxied->getLastOffset() - global_offset); + return result; } void |