]> git.saurik.com Git - wxWidgets.git/commitdiff
Add a missing test for wxHAS_CALL_AFTER in the implementation too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Oct 2012 23:13:16 +0000 (23:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Oct 2012 23:13:16 +0000 (23:13 +0000)
This completes the changes of r72743.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/event.cpp

index 1d2beecc21e82fd90af84618f3466c6b4ad5742b..5db57446394e0ac17f4a3d7c3be6be23535a6efb 100644 (file)
@@ -1565,6 +1565,7 @@ bool wxEvtHandler::TryHereOnly(wxEvent& event)
     if ( GetEventHashTable().HandleEvent(event, this) )
         return true;
 
+#ifdef wxHAS_CALL_AFTER
     // There is an implicit entry for async method calls processing in every
     // event handler:
     if ( event.GetEventType() == wxEVT_ASYNC_METHOD_CALL &&
@@ -1573,6 +1574,7 @@ bool wxEvtHandler::TryHereOnly(wxEvent& event)
         static_cast<wxAsyncMethodCallEvent&>(event).Execute();
         return true;
     }
+#endif // wxHAS_CALL_AFTER
 
     // We don't have a handler for this event.
     return false;