mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
raw: Don't seek back if we were asked to read too much
Otherwise we will return false when LibRaw::derror calls for eof() when it is actually that we have reached eof
This commit is contained in:
parent
d734f28727
commit
8586bb4719
@ -115,9 +115,6 @@ public:
|
||||
if (read < 1) {
|
||||
return 0;
|
||||
}
|
||||
if (auto o = read % sz) {
|
||||
seek(-(sz - o), SEEK_CUR);
|
||||
}
|
||||
return read / sz;
|
||||
}
|
||||
virtual int eof() override
|
||||
|
Loading…
Reference in New Issue
Block a user