#include "wx/wxprec.h"
-#include "wx/button.h"
-
#ifndef WX_PRECOMP
+#include "wx/object.h"
#endif
+#include "wx/button.h"
+
#include "wx/osx/private.h"
#if wxUSE_MARKUP
virtual void SetBitmap(const wxBitmap& bitmap)
{
// switch bezel style for plain pushbuttons
- if ( bitmap.IsOk() && [GetNSButton() bezelStyle] == NSRoundedBezelStyle )
- [GetNSButton() setBezelStyle:NSRegularSquareBezelStyle ];
-
+ if ( bitmap.IsOk() )
+ {
+ if ([GetNSButton() bezelStyle] == NSRoundedBezelStyle)
+ [GetNSButton() setBezelStyle:NSRegularSquareBezelStyle];
+ }
+ else
+ {
+ [GetNSButton() setBezelStyle:NSRoundedBezelStyle];
+ }
+
wxWidgetCocoaImpl::SetBitmap(bitmap);
}