]> git.saurik.com Git - wxWidgets.git/commitdiff
work w/o bitmap button
authorRyan Norton <wxprojects@comcast.net>
Tue, 1 Mar 2005 11:06:27 +0000 (11:06 +0000)
committerRyan Norton <wxprojects@comcast.net>
Tue, 1 Mar 2005 11:06:27 +0000 (11:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/menuitem.cpp

index 0b9094a12f4c524257e157a24749c34064865f5b..5188955ad40e091e2a1ffbdb049dd66eec554a04 100644 (file)
@@ -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            
     }
 }