Use wxFS_SEEKABLE flag loading images.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f32848c53f
commit
948c6134e7
@ -869,10 +869,14 @@ wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity) const
|
||||
return GetCharForCode(code);
|
||||
}
|
||||
|
||||
wxFSFile *wxHtmlParser::OpenURL(wxHtmlURLType WXUNUSED(type),
|
||||
wxFSFile *wxHtmlParser::OpenURL(wxHtmlURLType type,
|
||||
const wxString& url) const
|
||||
{
|
||||
return m_FS ? m_FS->OpenFile(url) : NULL;
|
||||
int flags = wxFS_READ;
|
||||
if (type == wxHTML_URL_IMAGE)
|
||||
flags |= wxFS_SEEKABLE;
|
||||
|
||||
return m_FS ? m_FS->OpenFile(url, flags) : NULL;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user