mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
Treat nil as image unsetting in setObjectValue:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21233 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2c274d8449
commit
fe0e6ce497
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-05-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSImageCell.m (-setObjectValue:) Nil parameter now unsets
|
||||
image. This resolves bug #13046.
|
||||
|
||||
2005-05-02 23:45 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSNibTemplates.m: added condition to all of the templates
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
- (void)setObjectValue:(id)object
|
||||
{
|
||||
if ([object isKindOfClass:[NSImage class]])
|
||||
if ((object == nil) || ([object isKindOfClass:[NSImage class]]))
|
||||
{
|
||||
[self setImage: object];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue