From ffbcbbb45a557cd03448bb6336199447e2902532 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Tue, 4 Aug 1998 10:26:56 +0000 Subject: [PATCH] re-fixed wxFileConfig(wxString, wxString) constructor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fileconf.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index a4df6e1d65..0bf48eeb78 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -222,13 +222,16 @@ wxFileConfig::wxFileConfig(const wxString& strLocal, const wxString& strGlobal) // if the path is not absolute, prepend the standard directory to it if ( !strLocal.IsEmpty() && !wxIsPathSeparator(strLocal[0u]) ) - m_strLocalFile = GetLocalDir(); - m_strLocalFile << strLocal; - + { + m_strLocalFile = GetLocalDir(); + m_strLocalFile << strLocal; + } + if ( !strGlobal.IsEmpty() && !wxIsPathSeparator(strGlobal[0u]) ) - m_strGlobalFile = GetGlobalDir(); - m_strGlobalFile << strGlobal; - + { + m_strGlobalFile = GetGlobalDir(); + m_strGlobalFile << strGlobal; + } Init(); } -- 2.50.0