From 6f34fcb34ebc7f6b4e45f17c699c586cb5f954d8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 8 Dec 2009 15:36:51 +0000 Subject: [PATCH] Fix event object in wxSysColourChangedEvent. The handler for this event in the base class incorrectly changed the event object of the original event instead of setting it for the event being sent to the window children as it was supposed to. Closes #11458. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 365d5b0ba2..9d63209e47 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -2479,7 +2479,7 @@ void wxWindowBase::OnSysColourChanged(wxSysColourChangedEvent& event) if ( !win->IsTopLevel() ) { wxSysColourChangedEvent event2; - event.SetEventObject(win); + event2.SetEventObject(win); win->GetEventHandler()->ProcessEvent(event2); } -- 2.47.2