]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/winpars.cpp
invalidate the best size when adding or deleting items
[wxWidgets.git] / src / html / winpars.cpp
index cb4a11b7f1dde432816a1584b775d832ccaf4e8a..9141a1a84e99d47ba791268b240519235b314ca7 100644 (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)