don't add an extra empty line to the end (fixes bug introduced by the last optimization round)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-07-23 22:36:37 +00:00
parent b899f05f9e
commit 89216929ee

View File

@ -479,7 +479,8 @@ wxFileConfig::wxFileConfig(wxInputStream &inStream, const wxMBConv& conv)
// notice that we throw away the original EOL kind here, maybe we
// should preserve it?
memText.AddLine(wxString(s, e));
if ( e != s )
memText.AddLine(wxString(s, e));
if ( *e == '\0' )
break;