[ 1942756 ] wxImage:SaveFile() returns true instead of result of subcall

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-04-17 15:07:26 +00:00
parent d7a4c4bd39
commit 1a8fa7d2fa

View File

@@ -2066,8 +2066,7 @@ bool wxImage::SaveFile( const wxString& filename ) const
wxImageHandler * pHandler = FindHandler(ext, -1);
if (pHandler)
{
SaveFile(filename, pHandler->GetType());
return true;
return SaveFile(filename, pHandler->GetType());
}
wxLogError(_("Can't save image to file '%s': unknown extension."), filename.c_str());