no message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-03-25 05:39:07 +00:00
parent ab6b6b15e0
commit f95255e2e7
4 changed files with 143 additions and 35 deletions

View File

@@ -384,7 +384,7 @@ bool wxBitmap::LoadFile(
if (!vImage.LoadFile(rFilename, lType) || !vImage.Ok() )
return(FALSE);
*this = vImage.ConvertToBitmap();
*this = wxBitmap(vImage);
return(TRUE);
}
@@ -444,7 +444,7 @@ bool wxBitmap::SaveFile(
else
{
// FIXME what about palette? shouldn't we use it?
wxImage vImage(*this);
wxImage vImage = ConvertToImage();
if (!vImage.Ok())
return(FALSE);