X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a63bdc860c10529ec2a9eb2edba966974a06ae7..4521f6c88cbefa7f13e3733d344776b795f981e4:/src/html/helpdata.cpp diff --git a/src/html/helpdata.cpp b/src/html/helpdata.cpp index 0b67e4482e..c60c74e626 100644 --- a/src/html/helpdata.cpp +++ b/src/html/helpdata.cpp @@ -4,7 +4,6 @@ // Notes: Based on htmlhelp.cpp, implementing a monolithic // HTML Help controller class, by Vaclav Slavik // Author: Harm van der Heijden and Vaclav Slavik -// RCS-ID: $Id$ // Copyright: (c) Harm van der Heijden and Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -245,7 +244,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; @@ -475,7 +474,8 @@ void wxHtmlHelpData::SetTempDir(const wxString& path) m_tempPath = path; else { - wxFileName fn(path); + wxFileName fn; + fn.AssignDir(path); fn.MakeAbsolute(); m_tempPath = fn.GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR);