]> git.saurik.com Git - wxWidgets.git/commitdiff
don't add dummy empty line at the end when reading from stream
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Oct 2004 08:42:58 +0000 (08:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Oct 2004 08:42:58 +0000 (08:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp

index 5e445db8ce67796c7b3ffddf6460a24cc235d9f1..f79f88014f32966f3b80b83baa70957e6fd1b3c8 100644 (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 */);