mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fix for bug #25720 as suggested by Michael Johnston
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27995 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
75d23375ce
commit
f2a516bf74
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-02-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSKeyValueCoding.m:
|
||||
Fix for bug #25720 as suggested by Michael Johnston
|
||||
|
||||
2009-02-26 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSCharacterSetData.h:
|
||||
|
|
|
@ -467,9 +467,9 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size)
|
|||
name[8] = toupper(name[8]);
|
||||
}
|
||||
sel = GSSelectorFromName(name);
|
||||
if (sel != 0
|
||||
&& (imp = (BOOL (*)(id,SEL,id*,id*))[self methodForSelector: sel]) != 0)
|
||||
if (sel != 0 && [self respondsToSelector: sel] == YES)
|
||||
{
|
||||
imp = (BOOL (*)(id,SEL,id*,id*))[self methodForSelector: sel];
|
||||
return (*imp)(self, sel, aValue, anError);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue