]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlpars.cpp
Added 'HasAlpha' attribute for wxColourProperty. Setting it to true allows user to...
[wxWidgets.git] / src / html / htmlpars.cpp
index 2076129925de742e43093db1ea12dbc594aede9a..38c0680c232a5eb5507c41f2d7118c9862500dba 100644 (file)
@@ -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;
 
 }