From d628de846ba5a9bb557ff35395c80a2413bf3f44 Mon Sep 17 00:00:00 2001 From: martynshaw99 Date: Mon, 25 Aug 2014 23:28:09 +0000 Subject: [PATCH] First of a series of patches from Steve and Richard to fix delivering local and remote help pages. --- src/widgets/HelpSystem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/HelpSystem.cpp b/src/widgets/HelpSystem.cpp index 0e47640ff..ada96aeba 100644 --- a/src/widgets/HelpSystem.cpp +++ b/src/widgets/HelpSystem.cpp @@ -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