]> git.saurik.com Git - wxWidgets.git/commitdiff
Trim trailing spaces from key names when parsing
authorRobin Dunn <robin@alldunn.com>
Tue, 2 Mar 2004 02:41:25 +0000 (02:41 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 2 Mar 2004 02:41:25 +0000 (02:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp

index 4dc63b3adaf21f01bdee824dba6d26fb756ae26e..e3af92c28a85860bdb6314d967e84f036c30b15e 100644 (file)
@@ -677,7 +677,7 @@ void wxFileConfig::Parse(wxTextBuffer& buffer, bool bLocal)
         pEnd++;
       }
 
-      wxString strKey(FilterInEntryName(wxString(pStart, pEnd)));
+      wxString strKey(FilterInEntryName(wxString(pStart, pEnd).Trim()));
 
       // skip whitespace
       while ( wxIsspace(*pEnd) )