]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed loading of resource from ZIP files on MacOS
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 27 Mar 2003 20:06:20 +0000 (20:06 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 27 Mar 2003 20:06:20 +0000 (20:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xrc/xmlres.cpp
docs/toback24.txt
src/xrc/xmlres.cpp

index dc9a434c95de2545d5db94ffbcca89966bfd0829..52d9881e13cf0e0d4b34996a009946d578aadde1 100644 (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
index 72859d77f11f1daf040dfdb19df2be3182d44835..24593642f939e373aa3713b3f4d2b8df278765e0 100644 (file)
@@ -165,6 +165,10 @@ Must be modified to be binary compatible before backporting!
 Checking in xmlres.cpp;
 /pack/cvsroots/wxwindows/wxWindows/contrib/src/xrc/xmlres.cpp,v  <--  xmlres.cpp
 new revision: 1.27; previous revision: 1.26
+done
+
+(also revision 1.30->1.31 of xmlres.cpp !!!)
+
 Checking in xmlres.h;
 /pack/cvsroots/wxwindows/wxWindows/contrib/include/wx/xrc/xmlres.h,v  <--  xmlres.h
 new revision: 1.22; previous revision: 1.21
index dc9a434c95de2545d5db94ffbcca89966bfd0829..52d9881e13cf0e0d4b34996a009946d578aadde1 100644 (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