From: Vadim Zeitlin Date: Mon, 25 Feb 2008 03:01:47 +0000 (+0000) Subject: check that we have a non-empty keyword in KeywordSearch() (replaces patch 1899972) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ed8c374dd72b5b943ff83780664aff6021dd3474?ds=inline 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 --- diff --git a/src/html/helpwnd.cpp b/src/html/helpwnd.cpp index 78557a7f5d..7dc36c785e 100644 --- a/src/html/helpwnd.cpp +++ b/src/html/helpwnd.cpp @@ -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 &&