X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b70ca266675b36fc6da1875f5944e52b8323d37..e7e91e03584a8e2582e7efd32a06f9f79ef65a52:/src/common/fs_mem.cpp diff --git a/src/common/fs_mem.cpp b/src/common/fs_mem.cpp index 2bfcfd02be..93e51c7625 100644 --- a/src/common/fs_mem.cpp +++ b/src/common/fs_mem.cpp @@ -174,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); }