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
This commit is contained in:
Vadim Zeitlin
2009-12-08 15:36:51 +00:00
parent 62354609e6
commit 6f34fcb34e

View File

@@ -2479,7 +2479,7 @@ void wxWindowBase::OnSysColourChanged(wxSysColourChangedEvent& event)
if ( !win->IsTopLevel() )
{
wxSysColourChangedEvent event2;
event.SetEventObject(win);
event2.SetEventObject(win);
win->GetEventHandler()->ProcessEvent(event2);
}