From 293f319ffc8c57da57334e74922a3ff955b7e866 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 21 Oct 2007 18:05:49 +0000 Subject: [PATCH] fixing missed line git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/textfile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index ef27836e89..cd2d2c40e4 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -220,6 +220,10 @@ bool wxTextFile::OnRead(const wxMBConv& conv) case '\r': if ( chLast == '\r' ) { + if ( p - 1 >= lineStart ) + { + AddLine(wxString(lineStart, p - 1), wxTextFileType_Mac); + } // Mac empty line AddLine(wxEmptyString, wxTextFileType_Mac); lineStart = p + 1;