]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
Partial fix for big_endian image conversion probs.
[wxWidgets.git] / src / common / stream.cpp
index ed5190b1dc8480c49c0b3b40eac53bd2a987992c..81339e6bfb6bdad1dd21574fae472c78d9458258 100644 (file)
@@ -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;