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:
Guillermo Rodriguez Garcia
1999-12-10 20:16:01 +00:00
parent 036bc7d9e1
commit e4b8154a65
4 changed files with 102 additions and 80 deletions

View File

@@ -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;