]> git.saurik.com Git - wxWidgets.git/commitdiff
check that we have a non-empty keyword in KeywordSearch() (replaces patch 1899972)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 25 Feb 2008 03:01:47 +0000 (03:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 25 Feb 2008 03:01:47 +0000 (03:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/helpwnd.cpp

index 78557a7f5d7c9441f702d0e336c01ea71c218c64..7dc36c785e5e21d445aa5df9141204ed3f94c2a8 100644 (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 &&