]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_mem.cpp
fixed typo in wxString::swap() which was completely broken
[wxWidgets.git] / src / common / fs_mem.cpp
index 2bfcfd02be1240efd3c5b24b75813cf44c2a16f4..93e51c7625bdcc14edadee29ff5690c76cebc272 100644 (file)
@@ -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);
 }