build fix for wxUSE_TOGGLEBTN==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3dcb256bea
commit
680f50f471
@ -127,11 +127,13 @@ void wxButtonCocoaImpl::SetPressedBitmap( const wxBitmap& bitmap )
|
||||
{
|
||||
NSButton* button = GetNSButton();
|
||||
[button setAlternateImage: bitmap.GetNSImage()];
|
||||
#if wxUSE_TOGGLEBTN
|
||||
if ( GetWXPeer()->IsKindOf(wxCLASSINFO(wxToggleButton)) )
|
||||
{
|
||||
[button setButtonType:NSToggleButton];
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
[button setButtonType:NSMomentaryChangeButton];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user