]> git.saurik.com Git - wxWidgets.git/commitdiff
Post size events to the event handler and not window itself.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Mar 2011 17:15:38 +0000 (17:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Mar 2011 17:15:38 +0000 (17:15 +0000)
Post the artificial wxSizeEvent to the window event handler and not window
itself in SendSizeEvent() as otherwise any event handlers wouldn't see this
event at all.

Closes #13066.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index eca7dd157accf992d93be8b2922de4ffd75939c8..b2c96009acea21c1beed8c5bc7e44624dc75efaf 100644 (file)
@@ -1064,7 +1064,7 @@ void wxWindowBase::SendSizeEvent(int flags)
     wxSizeEvent event(GetSize(), GetId());
     event.SetEventObject(this);
     if ( flags & wxSEND_EVENT_POST )
-        wxPostEvent(this, event);
+        wxPostEvent(GetEventHandler(), event);
     else
         HandleWindowEvent(event);
 }