minor bugfix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23327 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-08-25 14:15:45 +00:00
parent 7f4d8050b9
commit f77bfe6fd7
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-08-25 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSScanner.m: initialisation fix pointed out by David Ayer
* Source/NSBundle.m: fix for getting class from gnustep bundle
2006-08-16 Richard Frith-Macdonald <rfm@gnu.org>
* NSCharacterSets/letterCharSet.dat:

View file

@ -1265,9 +1265,11 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
if (self == _mainBundle || self == _gnustep_bundle)
{
theClass = NSClassFromString(className);
if (theClass && [[self class] bundleForClass:theClass] != _mainBundle)
if (theClass && [[self class] bundleForClass: theClass] != self)
{
theClass = Nil;
}
}
else
{
BOOL found = NO;