From: Jaakko Salli Date: Mon, 18 Apr 2011 10:03:16 +0000 (+0000) Subject: In wxComboCtrlBase::OnTextCtrlEvent(), make sure to call event.StopPropagation()... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/26844be538c1bd620aa5985f3ffb07050d3a4b6d?ds=inline In wxComboCtrlBase::OnTextCtrlEvent(), make sure to call event.StopPropagation() only after it has been copied git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp index aadf2c1104..5f79ec30ef 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -1770,13 +1770,13 @@ void wxComboCtrlBase::OnTextCtrlEvent(wxCommandEvent& event) } } - event.StopPropagation(); - // For safety, completely re-create a new wxCommandEvent wxCommandEvent evt2(event); evt2.SetId(GetId()); evt2.SetEventObject(this); HandleWindowEvent(evt2); + + event.StopPropagation(); } // call if cursor is on button area or mouse is captured for the button