changed wxBitmap::CreateFromXpm to use wxBitmap(wxImage,int) ctor again -- it should work fine with BCC now

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-05-16 22:07:59 +00:00
parent 52f96deca1
commit c59b4b010e

View File

@ -293,7 +293,7 @@ bool wxBitmap::CreateFromXpm(const char **data)
wxImage img = decoder.ReadData(data);
wxCHECK_MSG( img.Ok(), FALSE, wxT("invalid bitmap data") )
*this = img.ConvertToBitmap();
*this = wxBitmap(img);
return TRUE;
#else
return FALSE;