1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +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 webHelpPage;
wxString releasePageName;
wxString anchor;
wxString anchor; // optional part of URL after (and including) the '#'
if (PageName.Find('#', true) != wxNOT_FOUND)
{ // need to split anchor off into separate variable
releasePageName= PageName.BeforeLast('#');
anchor= PageName.AfterLast('#');
anchor = wxT("#") + PageName.AfterLast('#');
}
else
{
releasePageName = PageName;
anchor = wxT("");
anchor = wxT("");
}
// This bit of code replicates the name transformations performed by the
// clean_filename routine in scripts/mw2html_audacity/mw2html.py