Don't crash in wxImage::SaveFile() if MIME type is not recognized.
Insert a missing "return false" whose lack resulted in a crash if the handler for the given MIME type wasn't found. Closes #14028. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cb8ae61385
commit
6bed673eb3
1 changed files with 1 additions and 0 deletions
|
|
@ -2576,6 +2576,7 @@ bool wxImage::SaveFile( wxOutputStream& stream, const wxString& mimetype ) const
|
|||
if ( !handler )
|
||||
{
|
||||
wxLogWarning( _("No image handler for type %s defined."), mimetype.GetData() );
|
||||
return false;
|
||||
}
|
||||
|
||||
return DoSave(*handler, stream);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue