]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
respect wxBU_NOTEXT style in wxButton
[wxWidgets.git] / src / common / appbase.cpp
index a3caf25a2bc244763b5e9cc17d6e45f7ac8905d2..269be5b5751e507090d4f37ee705b82ac2ee9f3c 100644 (file)
@@ -503,7 +503,7 @@ void wxAppConsoleBase::CallEventHandler(wxEvtHandler *handler,
 {
     // If the functor holds a method then, for backward compatibility, call
     // HandleEvent():
-    wxEventFunction eventFunction = functor.GetMethod();
+    wxEventFunction eventFunction = functor.GetEvtMethod();
 
     if ( eventFunction )
         HandleEvent(handler, eventFunction, event);