From 17256d1ed028fadca9ba5ebe076f961353a15310 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 2 Mar 2004 02:41:25 +0000 Subject: [PATCH] Trim trailing spaces from key names when parsing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fileconf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 4dc63b3ada..e3af92c28a 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -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) ) -- 2.49.0