git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22554
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int wxGenericImageList::Add( const wxBitmap &bitmap )
{
int wxGenericImageList::Add( const wxBitmap &bitmap )
{
+ wxASSERT_MSG( bitmap.GetWidth() == m_width &&
+ bitmap.GetHeight() == m_height,
+ _T("invalid bitmap size in wxImageList: this might work ")
+ _T("on this platform but definitely won't under Windows.") );
+
if (bitmap.IsKindOf(CLASSINFO(wxIcon)))
m_images.Append( new wxIcon( (const wxIcon&) bitmap ) );
else
if (bitmap.IsKindOf(CLASSINFO(wxIcon)))
m_images.Append( new wxIcon( (const wxIcon&) bitmap ) );
else