From: Vadim Zeitlin Date: Mon, 23 Jul 2007 22:36:37 +0000 (+0000) Subject: don't add an extra empty line to the end (fixes bug introduced by the last optimizati... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/89216929eeffa3d2f0cb84bd562442edb3264a00?ds=sidebyside 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 --- diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index ab3c4a0f49..6b1f5f5df2 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -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;