X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e9ff8157389edec60f1e86bca2139dc0e635ebc..130d96dcf64bcade6fb6b9da49ee9983ed9872ef:/src/msw/bitmap.cpp diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 99e6867101..086d472183 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -948,7 +948,7 @@ bool wxBitmap::LoadFile(const wxString& filename, long type) wxImage image; if ( image.LoadFile( filename, type ) && image.Ok() ) { - *this = image.ConvertToBitmap(); + *this = wxBitmap(image); return TRUE; } @@ -990,7 +990,7 @@ bool wxBitmap::SaveFile(const wxString& filename, else { // FIXME what about palette? shouldn't we use it? - wxImage image( *this ); + wxImage image = ConvertToImage(); if ( image.Ok() ) { return image.SaveFile(filename, type);