]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_mem.cpp
reuse Clear() instead of duplicating its code in Close()
[wxWidgets.git] / src / common / fs_mem.cpp
index 5c983a1def81760c90e131154cf77af37562ced7..7475dfd1e9aa3881ffdd23afc4a7e380f8b3e652 100644 (file)
@@ -227,8 +227,10 @@ wxMemoryFSHandler::AddFile(const wxString& filename,
                            const wxBitmap& bitmap,
                            long type)
 {
+#if !defined(__WXMSW__) || wxUSE_WXDIB
     wxImage img = bitmap.ConvertToImage();
     AddFile(filename, img, type);
+#endif
 }
 
 #endif // wxUSE_IMAGE