fixed double filename->URL conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -124,8 +124,7 @@ bool wxXmlResource::Load(const wxString& filemask)
|
|||||||
if (fnd.Lower().Matches(wxT("*.zip")) ||
|
if (fnd.Lower().Matches(wxT("*.zip")) ||
|
||||||
fnd.Lower().Matches(wxT("*.xrs")))
|
fnd.Lower().Matches(wxT("*.xrs")))
|
||||||
{
|
{
|
||||||
wxString url(wxFileSystem::FileNameToURL(fnd));
|
rt = rt && Load(fnd + wxT("#zip:*.xrc"));
|
||||||
rt = rt && Load(url + wxT("#zip:*.xrc"));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@@ -124,8 +124,7 @@ bool wxXmlResource::Load(const wxString& filemask)
|
|||||||
if (fnd.Lower().Matches(wxT("*.zip")) ||
|
if (fnd.Lower().Matches(wxT("*.zip")) ||
|
||||||
fnd.Lower().Matches(wxT("*.xrs")))
|
fnd.Lower().Matches(wxT("*.xrs")))
|
||||||
{
|
{
|
||||||
wxString url(wxFileSystem::FileNameToURL(fnd));
|
rt = rt && Load(fnd + wxT("#zip:*.xrc"));
|
||||||
rt = rt && Load(url + wxT("#zip:*.xrc"));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user