mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
And return proper error messages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35959 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0d760caf50
commit
4f88674d9a
1 changed files with 9 additions and 1 deletions
|
@ -538,7 +538,7 @@ static int gs_gif_output(GifFileType *file, const GifByteType *buffer, int len)
|
|||
|
||||
return GIFRep;
|
||||
#else
|
||||
NSLog(@"GIF representation is not available on this system.");
|
||||
SET_ERROR_MSG(@"GIFRepresentation: not available on this system");
|
||||
return nil;
|
||||
#endif
|
||||
}
|
||||
|
@ -555,6 +555,10 @@ static int gs_gif_output(GifFileType *file, const GifByteType *buffer, int len)
|
|||
- (id) _initBitmapFromGIF: (NSData *)imageData
|
||||
errorMessage: (NSString **)errorMsg
|
||||
{
|
||||
if (errorMsg != NULL)
|
||||
{
|
||||
*errorMsg = @"gif images not supported on this system";
|
||||
}
|
||||
RELEASE(self);
|
||||
return nil;
|
||||
}
|
||||
|
@ -562,6 +566,10 @@ static int gs_gif_output(GifFileType *file, const GifByteType *buffer, int len)
|
|||
- (NSData *) _GIFRepresentationWithProperties: (NSDictionary *) properties
|
||||
errorMessage: (NSString **)errorMsg
|
||||
{
|
||||
if (errorMsg != NULL)
|
||||
{
|
||||
*errorMsg = @"GIFRepresentation: not supported on this system";
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue