mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-31 14:01:59 +00:00
Update lastOffset when reading
This commit is contained in:
parent
478c05fcab
commit
7393a03868
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user