X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54c7aaca2355973dd33359210b280b4d79d54593..5283098e1316b4a811fbccaabbda71f676e86c93:/src/motif/bitmap.cpp diff --git a/src/motif/bitmap.cpp b/src/motif/bitmap.cpp index fe00dc46fa..bace224758 100644 --- a/src/motif/bitmap.cpp +++ b/src/motif/bitmap.cpp @@ -211,7 +211,7 @@ bool wxBitmap::LoadFile(const wxString& filename, long type) if (!image.LoadFile( filename, type )) return FALSE; if (image.Ok()) { - *this = image.ConvertToBitmap(); + *this = wxBitmap(image); return TRUE; } else return FALSE; @@ -242,7 +242,7 @@ bool wxBitmap::SaveFile(const wxString& filename, int type, const wxPalette *pal wxBitmapHandler *handler = FindHandler(type); if ( handler == NULL ) { // try wxImage - wxImage image( *this ); + wxImage image = this->ConvertToImage(); if (image.Ok()) return image.SaveFile( filename, type ); else return FALSE; }