check that we have a non-empty keyword in KeywordSearch() (replaces patch 1899972)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-02-25 03:01:47 +00:00
parent 000eea7a2e
commit ed8c374dd7

View File

@@ -827,6 +827,8 @@ void wxHtmlHelpWindow::DisplayIndexItem(const wxHtmlHelpMergedIndexItem *it)
bool wxHtmlHelpWindow::KeywordSearch(const wxString& keyword,
wxHelpSearchMode mode)
{
wxCHECK_MSG( !keyword.empty(), false, "must have a non empty keyword" );
if (mode == wxHELP_SEARCH_ALL)
{
if ( !(m_SearchList &&