]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/helpwxht.cpp
fix for wxComboBox::GetSelection from inside event handler
[wxWidgets.git] / src / generic / helpwxht.cpp
index 92183550679e5abac3606213aca2a5f0dc314009..7b3a9c9d70b7bf154ec27fee2f71ea51b8cc25b3 100644 (file)
@@ -19,7 +19,7 @@
 #   pragma hdrstop
 #endif
 
-#if wxUSE_HTML && wxUSE_STREAMS
+#if wxUSE_WXHTML_HELP
 
 #ifndef WX_PRECOMP
     #include "wx/string.h"
@@ -131,7 +131,7 @@ wxHelpFrame::OnButton(wxCommandEvent &ev)
    else if(id == m_IdSearch)
    {
       wxString str = m_combo->GetValue();
-      if(m_combo->FindString(str) == -1 && m_combo->Number() < MAX_COMBO_ENTRIES)
+      if(m_combo->FindString(str) == -1 && m_combo->GetCount() < MAX_COMBO_ENTRIES)
          m_combo->Append(str);
       m_controller->KeywordSearch(str);
    }
@@ -315,4 +315,5 @@ wxHelpControllerHtml::GetFrameParameters(wxSize *size,
    return m_Frame;
 }
 
-#endif // wxUSE_HTML
+#endif // wxUSE_WXHTML_HELP
+