]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
EVT_TEXT_UPDATED bug fixed, text ctrl callbacks simplified
[wxWidgets.git] / src / common / stream.cpp
index 95947e603272bf4a684b802cda0cc2292c900d54..305c8c51289c527f8ed04f7ec525380d9fe69f4d 100644 (file)
@@ -251,8 +251,8 @@ void wxStreamBuffer::PutChar(char c)
     return;
   }
 
-  if (!GetDataLeft() && !FlushBuffer()) {
-    CHECK_ERROR(wxStream_READ_ERR);
+  if (GetDataLeft() == 0 && !FlushBuffer()) {
+    CHECK_ERROR(wxStream_WRITE_ERR);
     return;
   }