Use wxFS_SEEKABLE when opening images since some image handlers need seeking.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2006-10-27 10:14:03 +00:00
parent cdd7933f3d
commit 5c4035d686

View File

@@ -332,7 +332,11 @@ wxFSFile *wxHtmlWinParser::OpenURL(wxHtmlURLType type,
if ( status == wxHTML_BLOCK )
return NULL;
return GetFS()->OpenFile(myurl);
int flags = wxFS_READ;
if (type == wxHTML_URL_IMAGE)
flags |= wxFS_SEEKABLE;
return GetFS()->OpenFile(myurl, flags);
}
void wxHtmlWinParser::AddText(const wxChar* txt)