From: Julian Smart Date: Fri, 9 Aug 2002 18:35:00 +0000 (+0000) Subject: Delete help text entry before adding new one, else X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5a07e9748288d199216af61dcac67d45011e36fe Delete help text entry before adding new one, else you can't reset it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/cshelp.cpp b/src/common/cshelp.cpp index 4d173898bc..75749750c9 100644 --- a/src/common/cshelp.cpp +++ b/src/common/cshelp.cpp @@ -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); }