From 63722a74b059e79811097383f3d77ba030a8c93b Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Thu, 14 Apr 2011 13:22:40 +0000 Subject: [PATCH] Rebuild textctrl events using copy ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/combocmn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.47.2