Added Mac Classic fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -441,6 +441,11 @@ wxFileName wxFileSystem::URLToFileName(const wxString& url)
|
|||||||
{
|
{
|
||||||
path = path.Mid(5);
|
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("%25"), wxT("%"));
|
||||||
path.Replace(wxT("%3A"), wxT(":"));
|
path.Replace(wxT("%3A"), wxT(":"));
|
||||||
@@ -482,6 +487,10 @@ wxString wxFileSystem::FileNameToURL(const wxFileName& filename)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
url = wxT("/") + url;
|
url = wxT("/") + url;
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
url = wxT("/") + url;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user