mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 21:31:56 +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
1c0c80227c
commit
58a7b10047
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>
|
2013-10-14 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/GSThemeDrawing.m: Change stepper drawing methods to use
|
* Source/GSThemeDrawing.m: Change stepper drawing methods to use
|
||||||
|
|
|
@ -2004,6 +2004,10 @@ typedef enum {
|
||||||
- (CGFloat) tabHeightForType: (NSTabViewType)type
|
- (CGFloat) tabHeightForType: (NSTabViewType)type
|
||||||
{
|
{
|
||||||
NSImage *img = [self imageForTabPart: GSTabUnSelectedLeft type: type];
|
NSImage *img = [self imageForTabPart: GSTabUnSelectedLeft type: type];
|
||||||
|
if (img == nil)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return [img size].height;
|
return [img size].height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue