removed the strange __WXMSW__ test in AddFile(bitmap) -- why should this function silently do nothing in this case?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -252,10 +252,8 @@ wxMemoryFSHandler::AddFile(const wxString& filename,
|
|||||||
const wxBitmap& bitmap,
|
const wxBitmap& bitmap,
|
||||||
wxBitmapType type)
|
wxBitmapType type)
|
||||||
{
|
{
|
||||||
#if !defined(__WXMSW__) || wxUSE_WXDIB
|
|
||||||
wxImage img = bitmap.ConvertToImage();
|
wxImage img = bitmap.ConvertToImage();
|
||||||
AddFile(filename, img, type);
|
AddFile(filename, img, type);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_IMAGE
|
#endif // wxUSE_IMAGE
|
||||||
|
Reference in New Issue
Block a user