X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56dc1ffd50dac2369237e528abca6c12ea179c19..48c8a76b8173aad9c89f9272449c0cccc4fbddaa:/src/common/stream.cpp?ds=sidebyside diff --git a/src/common/stream.cpp b/src/common/stream.cpp index ed5190b1dc..81339e6bfb 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -114,7 +114,7 @@ void wxStreamBuffer::ResetBuffer() { m_stream->m_lasterror = wxStream_NOERROR; m_stream->m_lastcount = 0; - if (m_mode == read) + if (m_mode == read && m_flushable) m_buffer_pos = m_buffer_end; else m_buffer_pos = m_buffer_start;