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

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-04-17 15:10:20 +00:00
parent 11d774e47d
commit 8b95d6a8f9

View File

@@ -2072,8 +2072,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());