mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -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) {
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user