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
This commit is contained in:
Vadim Zeitlin
2003-10-16 10:31:19 +00:00
parent 999836aaca
commit 489bbac963
2 changed files with 3 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ All (GUI):
- wxListCtrl now sends an END_LABEL event if editing was cancelled, too - 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) - 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 - status text is now restored after wxMenu help is shown in it
- bug in wxWindow::RemoveEventHandler() fixed (Yingjun Zhang)
wxMSW: wxMSW:

View File

@@ -812,7 +812,9 @@ bool wxWindowBase::RemoveEventHandler(wxEvtHandler *handler)
{ {
handlerNext->SetPreviousHandler ( handlerPrev ); handlerNext->SetPreviousHandler ( handlerPrev );
} }
handler->SetNextHandler(NULL); handler->SetNextHandler(NULL);
handler->SetPreviousHandler(NULL);
return TRUE; return TRUE;
} }