minor fix to find contents file alright

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1999-07-24 22:38:00 +00:00
parent 9f3553c83e
commit 3bcf00abd7

View File

@ -217,7 +217,11 @@ wxHTMLHelpControllerBase::DisplayContents()
}
bool rc = FALSE;
if(contents.Length() && wxFileExists(contents.BeforeLast('#')))
wxString file;
file << m_MapFile << WXEXTHELP_SEPARATOR << contents;
if(file.Contains('#'))
file = file.BeforeLast('#');
if(contents.Length() && wxFileExists(file))
rc = DisplaySection(CONTENTS_ID);
// if not found, open homemade toc: