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); }