From: Michael Wetherell Date: Sat, 18 Nov 2006 18:43:13 +0000 (+0000) Subject: Add wxFS_SEEKABLE to wxFileSystem::OpenFile calls for images. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4532786ee21088b57755d254a9d449e0b7b6b7e0 Add wxFS_SEEKABLE to wxFileSystem::OpenFile calls for images. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index c2aa6a5586..479dbbd138 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -1116,7 +1116,7 @@ wxBitmap wxXmlResourceHandler::GetBitmap(const wxString& param, wxString name = GetParamValue(param); if (name.empty()) return wxNullBitmap; #if wxUSE_FILESYSTEM - wxFSFile *fsfile = GetCurFileSystem().OpenFile(name); + wxFSFile *fsfile = GetCurFileSystem().OpenFile(name, wxFS_READ | wxFS_SEEKABLE); if (fsfile == NULL) { wxLogError(_("XRC resource: Cannot create bitmap from '%s'."), @@ -1148,7 +1148,7 @@ wxAnimation wxXmlResourceHandler::GetAnimation(const wxString& param) wxString name = GetParamValue(param); if (name.empty()) return wxNullAnimation; #if wxUSE_FILESYSTEM - wxFSFile *fsfile = GetCurFileSystem().OpenFile(name); + wxFSFile *fsfile = GetCurFileSystem().OpenFile(name, wxFS_READ | wxFS_SEEKABLE); if (fsfile == NULL) { wxLogError(_("XRC resource: Cannot create animation from '%s'."),