From b83144c46f10877124002b22f35878176bb2fdbf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 22 Mar 2011 17:15:38 +0000 Subject: [PATCH] Post size events to the event handler and not window itself. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index eca7dd157a..b2c96009ac 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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); } -- 2.50.0