X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a8c693aea7d83397af67825943e2750f1723628..3bcc8d15815a0c3d8c515083561e296cac242bf0:/src/generic/helpwxht.cpp?ds=sidebyside diff --git a/src/generic/helpwxht.cpp b/src/generic/helpwxht.cpp index 7b3a9c9d70..0ee358cc5d 100644 --- a/src/generic/helpwxht.cpp +++ b/src/generic/helpwxht.cpp @@ -45,6 +45,10 @@ # include #endif +#ifdef __WXMAC__ + #include "wx/mac/private.h" +#endif + IMPLEMENT_CLASS(wxHelpControllerHtml, wxHTMLHelpControllerBase) /** @@ -272,7 +276,11 @@ wxHelpControllerHtml::DisplayHelp(const wxString &relativeURL) wxBusyCursor b; // display a busy cursor wxString url; - url << m_MapFile << SEP<< relativeURL; + wxString mapfileurl = m_MapFile ; +#if defined(__WXMAC__) && !defined(__DARWIN__) + mapfileurl = wxMac2UnixFilename(m_MapFile) ; +#endif + url << mapfileurl << SEP<< relativeURL; if(! m_Frame || m_NewFrameEachTime) { m_Frame = new wxHelpFrame(NULL, -1, m_FrameTitle,