X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94aff5ff86189e39b7a95fc62e886374c060a2cf..f62a3b6a535d739ea538bf8a3985e36dd091c703:/src/os2/button.cpp

diff --git a/src/os2/button.cpp b/src/os2/button.cpp
index c237d91542..41fa9c9cbc 100644
--- a/src/os2/button.cpp
+++ b/src/os2/button.cpp
@@ -231,12 +231,12 @@ bool wxButton::SendClickEvent()
     return ProcessCommand(vEvent);
 } // end of wxButton::SendClickEvent
 
-void wxButton::SetDefault()
+wxWindow *wxButton::SetDefault()
 {
     //
     // Set this one as the default button both for wxWidgets and Windows
     //
-    wxWindow* pWinOldDefault = wxButtonBase::Set();
+    wxWindow* pWinOldDefault = wxButtonBase::SetDefault();
 
     SetDefaultStyle( wxDynamicCast(pWinOldDefault, wxButton), false);
     SetDefaultStyle( this, true );