Unicode compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ove Kaaven 1999-07-25 05:41:29 +00:00
parent a35faffd59
commit 3a5815b583

View File

@ -219,13 +219,13 @@ wxHTMLHelpControllerBase::DisplayContents()
bool rc = FALSE;
wxString file;
file << m_MapFile << WXEXTHELP_SEPARATOR << contents;
if(file.Contains('#'))
file = file.BeforeLast('#');
if(file.Contains(_T('#')))
file = file.BeforeLast(_T('#'));
if(contents.Length() && wxFileExists(file))
rc = DisplaySection(CONTENTS_ID);
// if not found, open homemade toc:
return rc ? TRUE : KeywordSearch("");
return rc ? TRUE : KeywordSearch(_T(""));
}
bool