From: Julian Smart Date: Fri, 26 Jun 1998 21:59:42 +0000 (+0000) Subject: Changes to aid debugging. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6c6f51f6bb72864ceccba4b01ad9a01f8119741e?ds=inline Changes to aid debugging. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/event.cpp b/src/common/event.cpp index 888605ba97..ca75848e40 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -355,6 +355,8 @@ bool wxEvtHandler::SearchEventTable(wxEventTable& table, wxEvent& event) while (table.entries[i].m_fn != NULL) { + wxEventType eventType = (wxEventType) table.entries[i].m_eventType; + if ((event.GetEventType() == table.entries[i].m_eventType) && (table.entries[i].m_id == -1 || // Match, if event spec says any id will do (id == -1) (table.entries[i].m_lastId == -1 && commandId == table.entries[i].m_id) || @@ -399,11 +401,13 @@ bool wxEvtHandler::SearchDynamicEventTable( wxEvent& event ) if (!m_dynamicEvents) return FALSE; int commandId = event.GetId(); - + wxNode *node = m_dynamicEvents->First(); while (node) { wxEventTableEntry *entry = (wxEventTableEntry*)node->Data(); + wxEventType eventType = (wxEventType) entry->m_eventType; + if (entry->m_fn) { if ((event.GetEventType() == entry->m_eventType) &&