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:
@@ -217,7 +217,11 @@ wxHTMLHelpControllerBase::DisplayContents()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool rc = FALSE;
|
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);
|
rc = DisplaySection(CONTENTS_ID);
|
||||||
|
|
||||||
// if not found, open homemade toc:
|
// if not found, open homemade toc:
|
||||||
|
Reference in New Issue
Block a user