diff --git a/src/common/stream.cpp b/src/common/stream.cpp index 7fdb36e3b8..162dcf19cb 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -593,6 +593,10 @@ wxInputStream& wxInputStream::Read(wxOutputStream& stream_out) off_t wxInputStream::SeekI(off_t pos, wxSeekMode mode) { + //should be check and improve, just to remove a slight bug ! + // I don't know whether it should be put as well in wxFileInputStream::OnSysSeek ? + if (m_lasterror==wxSTREAM_EOF) m_lasterror=wxSTREAM_NOERROR; + return OnSysSeek(pos, mode); }