X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c51a665c649f7579fb39e62070cef4f66b3210d..0482be5e1d33c8973d86145801f1840b26334a00:/src/osx/imaglist.cpp?ds=sidebyside diff --git a/src/osx/imaglist.cpp b/src/osx/imaglist.cpp index e2191ca179..2f9346ac52 100644 --- a/src/osx/imaglist.cpp +++ b/src/osx/imaglist.cpp @@ -108,7 +108,7 @@ int wxImageList::Add( const wxBitmap &bitmap ) int wxImageList::Add( const wxBitmap& bitmap, const wxBitmap& mask ) { wxBitmap bmp( bitmap ); - if (mask.Ok()) + if (mask.IsOk()) bmp.SetMask( new wxMask( mask ) ); return Add( bmp ); @@ -231,7 +231,7 @@ bool wxImageList::Replace( int index, const wxBitmap &bitmap, const wxBitmap &ma m_images.Insert( next, newBitmap ); } - if (mask.Ok()) + if (mask.IsOk()) newBitmap->SetMask(new wxMask(mask)); return true;