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:
parent
b718a533ac
commit
63722a74b0
@ -1773,9 +1773,9 @@ void wxComboCtrlBase::OnTextCtrlEvent(wxCommandEvent& event)
|
|||||||
event.StopPropagation();
|
event.StopPropagation();
|
||||||
|
|
||||||
// For safety, completely re-create a new wxCommandEvent
|
// For safety, completely re-create a new wxCommandEvent
|
||||||
wxCommandEvent evt2(event.GetEventType(), GetId());
|
wxCommandEvent evt2(event);
|
||||||
|
evt2.SetId(GetId());
|
||||||
evt2.SetEventObject(this);
|
evt2.SetEventObject(this);
|
||||||
evt2.SetString(event.GetString());
|
|
||||||
HandleWindowEvent(evt2);
|
HandleWindowEvent(evt2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user