[ 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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user