]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/button.cpp
Fixed compile errors, warnings and other DSMs, and improved comments.
[wxWidgets.git] / src / mac / button.cpp
index 363789a94521f979fce8ee9dfeba079f9c44fee1..b8689ca0fd8319ddf12133565c3970624a5c1587 100644 (file)
@@ -22,7 +22,7 @@
 IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
 #endif
 
-#include <wx/mac/uma.h>
+#include "wx/mac/uma.h"
 // Button
 
 
@@ -53,7 +53,8 @@ void wxButton::SetDefault()
     wxPanel *panel = wxDynamicCast(parent, wxPanel);
     if ( panel )
     {
-        btnOldDefault = panel->GetDefaultItem();
+        btnOldDefault = wxDynamicCast(panel->GetDefaultItem(),
+           wxButton);
         panel->SetDefaultItem(this);
     }