]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpdata.cpp
cleaning up strdup/isascii definitions for compilers which lack them (should fix...
[wxWidgets.git] / src / html / helpdata.cpp
index 41d62f45431342c02e7abd70af846d7adbc6a2ab..327cc5fa4e9d6ef3627f87a4cd91a75231eea133 100644 (file)
@@ -78,6 +78,11 @@ wxHtmlHelpIndexCompareFunc(wxHtmlHelpDataItem **a, wxHtmlHelpDataItem **b)
     wxHtmlHelpDataItem *ia = *a;
     wxHtmlHelpDataItem *ib = *b;
 
+    if (ia == NULL)
+        return -1;
+    if (ib == NULL)
+        return 1;
+    
     if (ia->parent == ib->parent)
     {
         return ia->name.CmpNoCase(ib->name);
@@ -971,7 +976,7 @@ void wxHtmlSearchEngine::LookFor(const wxString& keyword, bool case_sensitive, b
     m_WholeWords = whole_words_only;
     m_Keyword = keyword;
 
-    if (m_CaseSensitive)
+    if (!m_CaseSensitive)
         m_Keyword.LowerCase();
 }