projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
000eea7
)
check that we have a non-empty keyword in KeywordSearch() (replaces patch 1899972)
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Mon, 25 Feb 2008 03:01:47 +0000
(
03:01
+0000)
committer
Vadim 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
patch
|
blob
|
blame
|
history
diff --git
a/src/html/helpwnd.cpp
b/src/html/helpwnd.cpp
index 78557a7f5d7c9441f702d0e336c01ea71c218c64..7dc36c785e5e21d445aa5df9141204ed3f94c2a8 100644
(file)
--- 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 &&