]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxFileConfig constructor bug
authorKarsten Ballüder <ballueder@usa.net>
Mon, 3 Aug 1998 10:10:53 +0000 (10:10 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Mon, 3 Aug 1998 10:10:53 +0000 (10:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp

index 837698b3f43c8bb5e2e50d6fdf1da0cf0f0147f8..a261372eaa6584c00f0c9e7d396282ba24ec6fbb 100644 (file)
@@ -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();
 }