X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2f3b00bd2903e76efeb44360cb0f475d1f16e19..807c0706e65d6d67b15d2acc53b0d41b6654c711:/src/mac/carbon/menuitem.cpp?ds=inline diff --git a/src/mac/carbon/menuitem.cpp b/src/mac/carbon/menuitem.cpp index 0b9094a12f..5188955ad4 100644 --- a/src/mac/carbon/menuitem.cpp +++ b/src/mac/carbon/menuitem.cpp @@ -86,6 +86,7 @@ void wxMenuItem::UpdateItemBitmap() if ( m_bitmap.Ok() ) { +#if wxUSE_BMPBUTTON ControlButtonContentInfo info ; wxMacCreateBitmapButton( &info , m_bitmap ) ; if ( info.contentType != kControlNoContent ) @@ -95,7 +96,7 @@ void wxMenuItem::UpdateItemBitmap() kMenuIconRefType , (Handle) info.u.iconRef ) ; } wxMacReleaseBitmapButton( &info ) ; - +#endif } }