mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Fixes to improve compliance
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5077 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eda939c97c
commit
9737128f0b
1 changed files with 12 additions and 4 deletions
|
@ -296,11 +296,16 @@ static Class cellClass;
|
|||
|
||||
- (void) setImage: (NSImage*)anImage
|
||||
{
|
||||
NSAssert(anImage == nil || [anImage isKindOfClass: imageClass],
|
||||
NSInvalidArgumentException);
|
||||
|
||||
if (anImage)
|
||||
{
|
||||
NSAssert ([anImage isKindOfClass: imageClass],
|
||||
NSInvalidArgumentException);
|
||||
}
|
||||
|
||||
if (cell_type != NSImageCellType)
|
||||
[self setType: NSImageCellType];
|
||||
|
||||
ASSIGN(cell_image, anImage);
|
||||
[self setType: NSImageCellType];
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -351,6 +356,9 @@ static Class cellClass;
|
|||
{
|
||||
NSString* _string;
|
||||
|
||||
if (cell_type != NSTextCellType)
|
||||
[self setType: NSTextCellType];
|
||||
|
||||
if (!aString)
|
||||
_string = @"";
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue