mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +00:00
* 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:
parent
77b7b9558e
commit
a55c2a9189
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue