Fix silly error in -loadGModelNamed:owner:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6523 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Jonathan Gapen 2000-04-28 00:32:55 +00:00
parent 75ff71a0d5
commit 66ae5be420

View file

@ -54,7 +54,8 @@ void __dummy_IMLoading_functionForLinking()
gmodelName = [gmodelName stringByDeletingPathExtension];
/* Use owner's bundle (if any) just like +loadNibNamed:owner: does. */
bundle = [NSBundle bundleForClass: owner];
bundle = [NSBundle bundleForClass: [owner class]];
if (bundle == nil)
bundle = [NSBundle mainBundle];