git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25149
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxBitmap bmp;
bmp.CopyFromIcon(ic);
wxBitmap bmp;
bmp.CopyFromIcon(ic);
+ if ( !bmp.Ok() )
+ {
+ int newid = file;
+ m_HashTable->Put(extension, new wxFileIconEntry(newid));
+ return newid;
+ }
+
int id = m_smallImageList->GetImageCount();
if ((bmp.GetWidth() == 16) && (bmp.GetHeight() == 16))
m_smallImageList->Add(bmp);
int id = m_smallImageList->GetImageCount();
if ((bmp.GetWidth() == 16) && (bmp.GetHeight() == 16))
m_smallImageList->Add(bmp);