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
This commit is contained in:
Vadim Zeitlin
2004-10-04 08:42:58 +00:00
parent 4c420a80e0
commit 45d51f194a

View File

@@ -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 */);