Deal with images taht result in no data. This happens in themes that

have to small images to be split up into 9 tiles.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34688 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2012-02-01 10:49:35 +00:00
parent b1db7ee743
commit 05514b6ac5
3 changed files with 21 additions and 7 deletions

View file

@ -345,7 +345,7 @@
return nil;
}
_imageData = RETAIN([dict objectForKey: @"Data"]);
if (_imageData == nil)
if (_imageData == nil || [_imageData length] == 0)
{
NSLog(@"NSBitmapImageRep initWithFocusedViewRect: failed");
RELEASE(self);