X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..434005ca85ce8b4e08092add395f26147004c298:/src/generic/helpwxht.cpp diff --git a/src/generic/helpwxht.cpp b/src/generic/helpwxht.cpp index 9218355067..0ee358cc5d 100644 --- a/src/generic/helpwxht.cpp +++ b/src/generic/helpwxht.cpp @@ -19,7 +19,7 @@ # pragma hdrstop #endif -#if wxUSE_HTML && wxUSE_STREAMS +#if wxUSE_WXHTML_HELP #ifndef WX_PRECOMP #include "wx/string.h" @@ -45,6 +45,10 @@ # include #endif +#ifdef __WXMAC__ + #include "wx/mac/private.h" +#endif + IMPLEMENT_CLASS(wxHelpControllerHtml, wxHTMLHelpControllerBase) /** @@ -131,7 +135,7 @@ wxHelpFrame::OnButton(wxCommandEvent &ev) else if(id == m_IdSearch) { wxString str = m_combo->GetValue(); - if(m_combo->FindString(str) == -1 && m_combo->Number() < MAX_COMBO_ENTRIES) + if(m_combo->FindString(str) == -1 && m_combo->GetCount() < MAX_COMBO_ENTRIES) m_combo->Append(str); m_controller->KeywordSearch(str); } @@ -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, @@ -315,4 +323,5 @@ wxHelpControllerHtml::GetFrameParameters(wxSize *size, return m_Frame; } -#endif // wxUSE_HTML +#endif // wxUSE_WXHTML_HELP +