source clean-up
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -49,15 +49,15 @@ bool wxGIFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose
|
||||
|
||||
decod = new wxGIFDecoder(&stream, TRUE);
|
||||
|
||||
if ((error = decod->ReadGIF()) != E_OK)
|
||||
if ((error = decod->ReadGIF()) != wxGIF_OK)
|
||||
{
|
||||
if (verbose)
|
||||
{
|
||||
switch (error)
|
||||
{
|
||||
case E_FORMATO: wxLogError(_("GIF: Error in image format.")); break;
|
||||
case E_MEMORIA: wxLogError(_("GIF: Couldn't allocate memory.")); break;
|
||||
default: wxLogError(_("GIF: Unknown error."));
|
||||
case wxGIF_INVFORMAT: wxLogError(_("wxGIFHandler: error in GIF image format")); break;
|
||||
case wxGIF_MEMERR: wxLogError(_("wxGIFHandler: couldn't allocate enough memory")); break;
|
||||
default: wxLogError(_("wxGIFHandler: unknown error !!!"));
|
||||
}
|
||||
}
|
||||
delete decod;
|
||||
|
||||
Reference in New Issue
Block a user