]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix event object in wxSysColourChangedEvent.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Dec 2009 15:36:51 +0000 (15:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Dec 2009 15:36:51 +0000 (15:36 +0000)
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

index 365d5b0ba27195745f57c26ce4d431d6539768c9..9d63209e474c703bbb67c1e8a20db1671df22c49 100644 (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);
         }