diff --git a/src/generic/calctrl.cpp b/src/generic/calctrl.cpp index 37a0ab7713..40e2dd3bc3 100644 --- a/src/generic/calctrl.cpp +++ b/src/generic/calctrl.cpp @@ -1061,6 +1061,7 @@ wxCalendarEvent::wxCalendarEvent(wxCalendarCtrl *cal, wxEventType type) : wxCommandEvent(type, cal->GetId()) { m_date = cal->GetDate(); + SetEventObject(cal); } #endif // wxUSE_CALENDARCTRL