Removed unnecessary branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -373,10 +373,6 @@ off_t wxStreamBuffer::Seek(off_t pos, wxSeekMode mode)
|
|||||||
if ( (diff > last_access) || (diff < 0) ) {
|
if ( (diff > last_access) || (diff < 0) ) {
|
||||||
// We must take into account the fact that we have read something
|
// We must take into account the fact that we have read something
|
||||||
// previously.
|
// previously.
|
||||||
if (diff < 0)
|
|
||||||
ret_off = m_stream->OnSysSeek(-(last_access-diff), wxFromCurrent);
|
|
||||||
// lastaccess + abs(diff) = lastaccess - diff here
|
|
||||||
else
|
|
||||||
ret_off = m_stream->OnSysSeek(diff-last_access, wxFromCurrent);
|
ret_off = m_stream->OnSysSeek(diff-last_access, wxFromCurrent);
|
||||||
ResetBuffer();
|
ResetBuffer();
|
||||||
return ret_off;
|
return ret_off;
|
||||||
|
Reference in New Issue
Block a user