From eb1d2336944baea1e8b2f5d1ffd1834c8ed55613 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 28 Jan 2002 21:52:09 +0000 Subject: [PATCH] bridged mapfile native path to filesys url paths for mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/helpwxht.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/generic/helpwxht.cpp b/src/generic/helpwxht.cpp index 7b3a9c9d70..e18bb0e386 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 ; +#ifdef __WXMAC__ + mapfileurl = wxMac2UnixFilename(m_MapFile) ; +#endif + url << mapfileurl << SEP<< relativeURL; if(! m_Frame || m_NewFrameEachTime) { m_Frame = new wxHelpFrame(NULL, -1, m_FrameTitle,