1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 08:59:28 +02:00

First of a series of patches from Steve and Richard to fix delivering local and remote help pages.

This commit is contained in:
martynshaw99 2014-08-25 23:28:09 +00:00
parent c8ea76b80e
commit d628de846b

View File

@ -227,16 +227,16 @@ void HelpSystem::ShowHelpDialog(wxWindow *parent, const wxString &PageName)
wxString localHelpPage; wxString localHelpPage;
wxString webHelpPage; wxString webHelpPage;
wxString releasePageName; wxString releasePageName;
wxString anchor; wxString anchor; // optional part of URL after (and including) the '#'
if (PageName.Find('#', true) != wxNOT_FOUND) if (PageName.Find('#', true) != wxNOT_FOUND)
{ // need to split anchor off into separate variable { // need to split anchor off into separate variable
releasePageName= PageName.BeforeLast('#'); releasePageName= PageName.BeforeLast('#');
anchor= PageName.AfterLast('#'); anchor = wxT("#") + PageName.AfterLast('#');
} }
else else
{ {
releasePageName = PageName; releasePageName = PageName;
anchor = wxT(""); anchor = wxT("");
} }
// This bit of code replicates the name transformations performed by the // This bit of code replicates the name transformations performed by the
// clean_filename routine in scripts/mw2html_audacity/mw2html.py // clean_filename routine in scripts/mw2html_audacity/mw2html.py