bug in line reading

Originally committed to SVN as r923.
This commit is contained in:
pomyk 2007-02-04 23:46:10 +00:00
parent 505e09257e
commit 008d60ba65

View file

@ -211,7 +211,7 @@ wxString TextFileReader::ReadLineFromFile() {
// FIXME, this might break on incomplete multibyte characters
wxString linepart(buffer, *conv);
wxbuffer += linepart;
if (buffer[511] == '\1') {
if (buffer[511] == '\1' || buffer[510] == '\n') {
// our sentinel \1 wasn't overwritten, meaning an EOL was found
break;
}