* Source/GSThemeDrawing.m (-tabHeightForType:): Check for nil

before calling -size on an NSImage, for systems where this
corrupts the stack.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37231 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2013-10-15 04:21:45 +00:00
parent 77b7b9558e
commit a55c2a9189
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2013-10-14 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSThemeDrawing.m (-tabHeightForType:): Check for nil
before calling -size on an NSImage, for systems where this
corrupts the stack.
2013-10-14 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSThemeDrawing.m: Change stepper drawing methods to use

View file

@ -2004,6 +2004,10 @@ typedef enum {
- (CGFloat) tabHeightForType: (NSTabViewType)type
{
NSImage *img = [self imageForTabPart: GSTabUnSelectedLeft type: type];
if (img == nil)
{
return 0;
}
return [img size].height;
}