From 45d51f194ab8ca09c31aae413e791ac91c4639f5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 4 Oct 2004 08:42:58 +0000 Subject: [PATCH] don't add dummy empty line at the end when reading from stream git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fileconf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 5e445db8ce..f79f88014f 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -527,7 +527,8 @@ wxFileConfig::wxFileConfig(wxInputStream &inStream, wxMBConv& conv) } // also add whatever we have left in the translated string. - memText.AddLine(strTrans); + if ( !strTrans.empty() ) + memText.AddLine(strTrans); // Finally we can parse it all. Parse(memText, true /* local */); -- 2.45.2