Rebuild textctrl events using copy ctor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli 2011-04-14 13:22:40 +00:00
parent b718a533ac
commit 63722a74b0

View File

@ -1773,9 +1773,9 @@ void wxComboCtrlBase::OnTextCtrlEvent(wxCommandEvent& event)
event.StopPropagation();
// For safety, completely re-create a new wxCommandEvent
wxCommandEvent evt2(event.GetEventType(), GetId());
wxCommandEvent evt2(event);
evt2.SetId(GetId());
evt2.SetEventObject(this);
evt2.SetString(event.GetString());
HandleWindowEvent(evt2);
}