]> git.saurik.com Git - wxWidgets.git/commitdiff
Delete help text entry before adding new one, else
authorJulian Smart <julian@anthemion.co.uk>
Fri, 9 Aug 2002 18:35:00 +0000 (18:35 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 9 Aug 2002 18:35:00 +0000 (18:35 +0000)
you can't reset it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cshelp.cpp

index 4d173898bc8e01dd7b324f4358b47183fa379cbc..75749750c9268f711a036cc0b889e522a4815b53 100644 (file)
@@ -336,11 +336,13 @@ wxString wxSimpleHelpProvider::GetHelp(const wxWindowBase *window)
 
 void wxSimpleHelpProvider::AddHelp(wxWindowBase *window, const wxString& text)
 {
+    m_hashWindows.Delete((long)window);
     m_hashWindows.Put((long)window, text);
 }
 
 void wxSimpleHelpProvider::AddHelp(wxWindowID id, const wxString& text)
 {
+    m_hashIds.Delete((long)id);
     m_hashIds.Put(id, text);
 }