From 5a07e9748288d199216af61dcac67d45011e36fe Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 9 Aug 2002 18:35:00 +0000 Subject: [PATCH] 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 --- src/common/cshelp.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.45.2