]> git.saurik.com Git - wxWidgets.git/commitdiff
don't add an extra empty line to the end (fixes bug introduced by the last optimizati...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jul 2007 22:36:37 +0000 (22:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jul 2007 22:36:37 +0000 (22:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp

index ab3c4a0f498435e2e7470dab5fb711b705ef7f28..6b1f5f5df2a48b454ddaae3d7d9169169c3c0846 100644 (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?
 
         // 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;
 
         if ( *e == '\0' )
             break;