From d1b736b7968ceea4233f3fceecdb01173f68a9a3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 18 Jun 2007 19:34:56 +0000 Subject: [PATCH] Send the calendar and date changed events to the datepicker ctrl first (not its parent) so they can be caught by dynamic event handlers connected directly to the picker. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/datectlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 2626290a3b..3c5d6933b8 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -199,10 +199,10 @@ public: cev.SetEventObject(datePicker); cev.SetId(datePicker->GetId()); cev.SetDate(dt); - GetParent()->GetEventHandler()->ProcessEvent(cev); + datePicker->GetEventHandler()->ProcessEvent(cev); wxDateEvent event(datePicker, dt, wxEVT_DATE_CHANGED); - datePicker->GetParent()->GetEventHandler()->ProcessEvent(event); + datePicker->GetEventHandler()->ProcessEvent(event); } private: