]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/config.cpp
fixed à parsing (here too)
[wxWidgets.git] / src / common / config.cpp
index feccd99ab00c66508a97aac4ce8a70e376d6098a..be417c42432ca4d1b22db32f62627db51e1b5997 100644 (file)
@@ -246,7 +246,9 @@ wxConfigPathChanger::wxConfigPathChanger(const wxConfigBase *pContainer,
     m_bChanged = TRUE;
     m_strName = strEntry.AfterLast(wxCONFIG_PATH_SEPARATOR);
     m_strOldPath = m_pContainer->GetPath();
-    m_strOldPath += wxCONFIG_PATH_SEPARATOR;
+    if ( m_strOldPath.Len() == 0 || 
+         m_strOldPath.Last() != wxCONFIG_PATH_SEPARATOR )
+        m_strOldPath += wxCONFIG_PATH_SEPARATOR;
     m_pContainer->SetPath(strPath);
   }
   else {