]> git.saurik.com Git - wxWidgets.git/commitdiff
MSVC 5 compilation fix.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 19 Oct 2003 09:10:20 +0000 (09:10 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 19 Oct 2003 09:10:20 +0000 (09:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/event.cpp

index 2ba914fde273af774b17944d8ffccf8791250a08..88efcebd7598a97443f01d6384b82f608972977b 100644 (file)
@@ -1330,7 +1330,7 @@ bool wxEvtHandler::SearchDynamicEventTable( wxEvent& event )
         wxDynamicEventTableEntry *entry = (wxDynamicEventTableEntry*)node->GetData();
 #endif // WXWIN_COMPATIBILITY_EVENT_TYPES/!WXWIN_COMPATIBILITY_EVENT_TYPES
 
         wxDynamicEventTableEntry *entry = (wxDynamicEventTableEntry*)node->GetData();
 #endif // WXWIN_COMPATIBILITY_EVENT_TYPES/!WXWIN_COMPATIBILITY_EVENT_TYPES
 
-        if ((event.m_eventType == entry->m_eventType) && entry->m_fn)
+        if ((event.m_eventType == entry->m_eventType) && (entry->m_fn != NULL))
         {
             wxEvtHandler *handler =
 #if !WXWIN_COMPATIBILITY_EVENT_TYPES
         {
             wxEvtHandler *handler =
 #if !WXWIN_COMPATIBILITY_EVENT_TYPES