git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14851
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxCHECK_MSG( sm_providers, wxNullIcon, _T("no wxArtProvider exists") );
wxBitmap bmp = GetBitmap(id, client, size);
wxCHECK_MSG( sm_providers, wxNullIcon, _T("no wxArtProvider exists") );
wxBitmap bmp = GetBitmap(id, client, size);
- if ( bmp.Ok() )
- {
- wxIcon icon;
- icon.CopyFromBitmap(bmp);
- return icon;
- }
- else
- {
+ wxIcon icon;
+ icon.CopyFromBitmap(bmp);
+ return icon;
+}
class wxArtProviderModule: public wxModule
class wxArtProviderModule: public wxModule