]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed loading of whole file:... specification of a page
authorJulian Smart <julian@anthemion.co.uk>
Mon, 17 Jun 2013 20:21:54 +0000 (20:21 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 17 Jun 2013 20:21:54 +0000 (20:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/helpdata.cpp

index 0b67e4482e6be6149ba9df4ca74a9578468e1efa..0ae98bcb7e62309f5402a737273f8dc8a1629870 100644 (file)
@@ -245,7 +245,7 @@ bool HP_TagHandler::HandleTag(const wxHtmlTag& tag)
 
 wxString wxHtmlBookRecord::GetFullPath(const wxString &page) const
 {
-    if (wxIsAbsolutePath(page))
+    if (wxIsAbsolutePath(page) || page.Find(wxT("file:")) == 0)
         return page;
     else
         return m_BasePath + page;