From: Michael Wetherell Date: Wed, 6 Sep 2006 21:43:19 +0000 (+0000) Subject: Fixed ReadLine missing last character from text files with no final newline. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f36b3a915e4543fbbd9c911724404b016972aabc Fixed ReadLine missing last character from text files with no final newline. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 1894757f21..d2e08f5c8f 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -197,9 +197,6 @@ wxString wxTextInputStream::ReadLine() if(c == wxEOT) break; - if ( !m_input ) - break; - if (EatEOL(c)) break;