X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51cd351973a7070f5827c65ec47eeb546451c3f1..4feb361314bd0208d1faa6b0b602ad8fd3594b51:/src/html/helpwnd.cpp?ds=inline 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 &&