]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
exchanged the base classes order, wxObject must be always first
[wxWidgets.git] / src / common / event.cpp
index f4be1f6d954802990d4e5855e6ce0cbd0973b8ce..187dbf5fcdab090af2c57216b219362ca1b6af3e 100644 (file)
@@ -1253,7 +1253,7 @@ bool wxEvtHandler::SearchDynamicEventTable( wxEvent& event )
         wxDynamicEventTableEntry *entry = (wxDynamicEventTableEntry*)node->GetData();
 #endif // WXWIN_COMPATIBILITY_EVENT_TYPES/!WXWIN_COMPATIBILITY_EVENT_TYPES
 
-        if (entry->m_fn)
+        if ((event.m_eventType == entry->m_eventType) && entry->m_fn)
         {
             wxEvtHandler *handler =
 #if !WXWIN_COMPATIBILITY_EVENT_TYPES