mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-20 04:24:19 -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:
@ -115,9 +115,6 @@ public:
|
|||||||
if (read < 1) {
|
if (read < 1) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (auto o = read % sz) {
|
|
||||||
seek(-(sz - o), SEEK_CUR);
|
|
||||||
}
|
|
||||||
return read / sz;
|
return read / sz;
|
||||||
}
|
}
|
||||||
virtual int eof() override
|
virtual int eof() override
|
||||||
|
Reference in New Issue
Block a user