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:
@@ -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 &&
|
||||
|
Reference in New Issue
Block a user