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:
Richard Frith-MacDonald 2006-08-25 14:15:45 +00:00
parent 012fdd0048
commit caa74e2108
2 changed files with 9 additions and 2 deletions

View file

@ -1265,8 +1265,10 @@ _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)
theClass = Nil;
if (theClass && [[self class] bundleForClass: theClass] != self)
{
theClass = Nil;
}
}
else
{