X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/008a56c968ed7e0694e32e93c2dbf95dde2ba5c8..1f6189acd0ebe8e27c4a71cc39b709784de26024:/src/common/filesys.cpp diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index ceb2810018..e86b88cea1 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -441,6 +441,11 @@ wxFileName wxFileSystem::URLToFileName(const wxString& url) { path = path.Mid(5); } + // Remove preceding double slash on Mac Classic +#if defined(__WXMAC__) && !defined(__UNIX__) + else if ( path.Find(wxT("//")) == 0 ) + path = path.Mid(2); +#endif path.Replace(wxT("%25"), wxT("%")); path.Replace(wxT("%3A"), wxT(":")); @@ -482,6 +487,10 @@ wxString wxFileSystem::FileNameToURL(const wxFileName& filename) else { url = wxT("/") + url; +#ifdef __WXMAC__ + url = wxT("/") + url; +#endif + } #endif