]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_mem.cpp
SetPath() is now implemented in dirdlg.cpp
[wxWidgets.git] / src / common / fs_mem.cpp
index c3f05cc6f54763579f58072c80e4cdc5fb417a98..93e51c7625bdcc14edadee29ff5690c76cebc272 100644 (file)
@@ -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);
 }