X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04dbb6467be8f564f380bd9a1106fbdecbd26a98..bb80bb5b30d7b16f39e6c1c63637f98fdf4ff63a:/src/common/fs_mem.cpp?ds=inline diff --git a/src/common/fs_mem.cpp b/src/common/fs_mem.cpp index c3f05cc6f5..93e51c7625 100644 --- a/src/common/fs_mem.cpp +++ b/src/common/fs_mem.cpp @@ -22,6 +22,7 @@ #ifndef WXPRECOMP #include "wx/intl.h" #include "wx/log.h" + #include "wx/hash.h" #endif #include "wx/filesys.h" @@ -173,7 +174,7 @@ bool wxMemoryFSHandler::CheckHash(const wxString& filename) /*static*/ void wxMemoryFSHandler::AddFile(const wxString& filename, const wxBitmap& bitmap, long type) { - wxImage img(bitmap); + wxImage img = bitmap.ConvertToImage(); AddFile(filename, img, type); }