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
This commit is contained in:
parent
1bd2ceb57b
commit
4532786ee2
@ -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'."),
|
||||
|
Loading…
Reference in New Issue
Block a user