Skip to content

Commit

Permalink
Small change in the OnAdvancedHtmlHelp() handler in MainFrm.cpp to ha…
Browse files Browse the repository at this point in the history
…ve the m_pHelpController->AddBook(wxFileName(..., ...)) use the wxPATH_NATIVE instead of the wxPATH_UNIX. This is to hopefully make the HTML Help available and fix the issue that Roland F reported.
  • Loading branch information
pngbill committed Jan 2, 2025
1 parent e0181ef commit 57dc281
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2508,7 +2508,9 @@ void CMainFrame::OnAdvancedHtmlHelp(wxCommandEvent& WXUNUSED(event))
wxString pathName = gpApp->m_helpInstallPath + gpApp->PathSeparator + gpApp->m_htbHelpFileName;
bool bOK1;
m_pHelpController->SetTempDir(_T(".")); // whm added 15Jan09 enables caching of helps for faster startups
bOK1 = m_pHelpController->AddBook(wxFileName(pathName, wxPATH_UNIX)); // whm added wxPATH_UNIX which is OK on Windows and seems to be needed for Ubuntu Intrepid
//bOK1 = m_pHelpController->AddBook(wxFileName(pathName, wxPATH_UNIX)); // whm added wxPATH_UNIX which is OK on Windows and seems to be needed for Ubuntu Intrepid
// whm 1Jan2024 changed. Roland F reported failure of AddBook() warning below, so to be safe I've changed the AddBook() call above to use wxPATH_NATIVE instead wxPATH_UNIX.
bOK1 = m_pHelpController->AddBook(wxFileName(pathName, wxPATH_NATIVE));
if (!bOK1)
{
wxString strMsg;
Expand Down

0 comments on commit 57dc281

Please sign in to comment.