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:
Paul Cornett 2014-04-11 04:48:57 +00:00
parent 3dcb256bea
commit 680f50f471

View File

@ -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];
}