From 489bbac96367db9dc3d4bbe6667bb2e9afec85ea Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 16 Oct 2003 10:31:19 +0000 Subject: [PATCH] RemoveEventHandler() didn't reset all pointers correctly (patch 819545) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/common/wincmn.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 7cece1bb7a..76829f19d7 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -85,6 +85,7 @@ All (GUI): - wxListCtrl now sends an END_LABEL event if editing was cancelled, too - bug in wxRect ctor from two [out of order] wxPoints fixed (Steve Cornett) - status text is now restored after wxMenu help is shown in it +- bug in wxWindow::RemoveEventHandler() fixed (Yingjun Zhang) wxMSW: diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index ecd50f6734..a45a930fae 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -812,7 +812,9 @@ bool wxWindowBase::RemoveEventHandler(wxEvtHandler *handler) { handlerNext->SetPreviousHandler ( handlerPrev ); } + handler->SetNextHandler(NULL); + handler->SetPreviousHandler(NULL); return TRUE; } -- 2.45.2