]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug in wxStreamBuffer::Read(wxStreamBuffer *) and improved its documentation...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Aug 2005 15:44:15 +0000 (15:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Aug 2005 15:44:15 +0000 (15:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
docs/latex/wx/stream.tex
src/common/stream.cpp

index ae373127d70fe1205ab07961fca875cadd8bc494..ae978e38b31069f9afe525d696e96c82c33ba58d 100644 (file)
@@ -17,6 +17,7 @@ All:
 - wxABI_VERSION, see 'Backward Compatibility' topic overview in the manual.
 - Added wxLongLong::ToDouble()
 - Added wxDateTime::[Make]FromTimezone(), fixed several TZ-related bugs
+- Fixed bug in wxStreamBuffer::Read(wxStreamBuffer *) (Paul Cornett)
 
 All (GUI):
 
index a0bd5a64d1bf5285f22a72464290e9fff087fa43..45a146774a9e35c75b5c626f4ae4d6fb40b3d256 100644 (file)
@@ -95,8 +95,8 @@ It returns the size of the data read. If the returned size is different of the s
 
 \func{size\_t}{Read}{\param{wxStreamBuffer *}{buffer}}
 
-Reads a {\it buffer}. The function returns when {\it buffer} is full or when there isn't
-data anymore in the current buffer.
+Copies data to {\it buffer}. The function returns when {\it buffer} is full or when there isn't
+any more data in the current buffer.
 
 \wxheading{See also}
 
index 271f7490ae38c0a2c6538d5505eecb131eb41f40..babad3a1100956df4c0ba5dccc18bd8d74e7ea5a 100644 (file)
@@ -434,7 +434,7 @@ size_t wxStreamBuffer::Read(wxStreamBuffer *dbuf)
 
     do
     {
-        nRead = Read(dbuf, WXSIZEOF(buf));
+        nRead = Read(buf, WXSIZEOF(buf));
         if ( nRead )
         {
             nRead = dbuf->Write(buf, nRead);