From: Jaakko Salli Date: Thu, 14 Apr 2011 13:22:40 +0000 (+0000) Subject: Rebuild textctrl events using copy ctor X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/63722a74b059e79811097383f3d77ba030a8c93b Rebuild textctrl events using copy ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp index afd9a7e4f8..aadf2c1104 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -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); }