fixed loading of resource from ZIP files on MacOS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-03-27 20:06:20 +00:00
parent aae91497f6
commit 76806f5906
3 changed files with 8 additions and 2 deletions

View File

@@ -121,7 +121,8 @@ bool wxXmlResource::Load(const wxString& filemask)
if (fnd.Lower().Matches(wxT("*.zip")) ||
fnd.Lower().Matches(wxT("*.xrs")))
{
rt = rt && Load(fnd + wxT("#zip:*.xrc"));
wxString url(wxFileSystem::FileNameToURL(fnd));
rt = rt && Load(url + wxT("#zip:*.xrc"));
}
else
#endif