switching implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-03-29 11:44:12 +00:00
parent 32c19f25fc
commit b337acd7a0

View File

@@ -351,12 +351,12 @@ void wxNotebook::MacSetupTabs()
if ( GetImageList() && GetPageImage(ii) >= 0 && UMAGetSystemVersion() >= 0x1020 )
{
const wxBitmap* bmap = GetImageList()->GetBitmapPtr( GetPageImage(ii ) ) ;
if ( bmap )
const wxBitmap bmap = GetImageList()->GetBitmap( GetPageImage(ii ) ) ;
if ( bmap.Ok() )
{
ControlButtonContentInfo info ;
wxMacCreateBitmapButton( &info , *bmap ) ;
wxMacCreateBitmapButton( &info , bmap ) ;
OSStatus err = m_peer->SetData<ControlButtonContentInfo>( ii+1,kControlTabImageContentTag, &info );
wxASSERT_MSG( err == noErr , wxT("Error when setting icon on tab") ) ;
wxMacReleaseBitmapButton( &info ) ;