From 26844be538c1bd620aa5985f3ffb07050d3a4b6d Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Mon, 18 Apr 2011 10:03:16 +0000 Subject: [PATCH] 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 --- 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 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 -- 2.50.0