X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/940718f06e8903c9ccc9e54b51b67653b27a97a1..09b7e6184a08a6d7df8244fd5a0e97177fbe41cf:/src/msw/bitmap.cpp diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 46cbb8f138..4c21494fcb 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -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;