mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 10:00:47 +00:00
* Source/GSImageMagickImageRep.m: Log warnings from ImageMagick
instead of giving up. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33540 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
22bfbcc946
commit
237476cb79
2 changed files with 21 additions and 13 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-07-12 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
|
* Source/GSImageMagickImageRep.m: Log warnings from ImageMagick
|
||||||
|
instead of giving up.
|
||||||
|
|
||||||
2011-07-12 Eric Wasylishen <ewasylishen@gmail.com>
|
2011-07-12 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/GSGuiPrivate.h: New rounding rounding function
|
* Source/GSGuiPrivate.h: New rounding rounding function
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#import <Foundation/NSData.h>
|
#import <Foundation/NSData.h>
|
||||||
#import <Foundation/NSTask.h>
|
#import <Foundation/NSTask.h>
|
||||||
#import <Foundation/NSProcessInfo.h>
|
#import <Foundation/NSProcessInfo.h>
|
||||||
|
#import <GNUstepBase/NSDebug+GNUstepBase.h>
|
||||||
#import "AppKit/NSBitmapImageRep.h"
|
#import "AppKit/NSBitmapImageRep.h"
|
||||||
#import "AppKit/NSGraphics.h"
|
#import "AppKit/NSGraphics.h"
|
||||||
#import "AppKit/NSPasteboard.h"
|
#import "AppKit/NSPasteboard.h"
|
||||||
|
@ -124,23 +125,25 @@
|
||||||
|
|
||||||
images = BlobToImage(imageinfo, [data bytes], [data length], exception);
|
images = BlobToImage(imageinfo, [data bytes], [data length], exception);
|
||||||
|
|
||||||
if (exception->severity == UndefinedException)
|
if (exception->severity != UndefinedException)
|
||||||
{
|
{
|
||||||
for (image = images; image != NULL; image = image->next)
|
NSWarnLog(@"ImageMagick: %s", GetLocaleExceptionMessage(exception->severity, exception->reason));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (image = images; image != NULL; image = image->next)
|
||||||
|
{
|
||||||
|
NSBitmapImageRep *bmp = [[self class] imageRepWithImageMagickImage: image];
|
||||||
|
if (bmp != nil)
|
||||||
{
|
{
|
||||||
NSBitmapImageRep *bmp = [[self class] imageRepWithImageMagickImage: image];
|
[reps addObject: bmp];
|
||||||
if (bmp != nil)
|
}
|
||||||
{
|
|
||||||
[reps addObject: bmp];
|
if (!allImages)
|
||||||
}
|
{
|
||||||
|
break;
|
||||||
if (!allImages)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DestroyExceptionInfo(exception);
|
DestroyExceptionInfo(exception);
|
||||||
DestroyImageInfo(imageinfo);
|
DestroyImageInfo(imageinfo);
|
||||||
DestroyImage(images);
|
DestroyImage(images);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue