use resourceName, not path :-)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30821 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Dave Wetzel 2010-06-22 16:39:34 +00:00
parent 5ce84bfb63
commit c40c3de8c4

View file

@ -560,8 +560,8 @@ NSMutableDictionary *globalPathCache = nil;
// __PRETTY_FUNCTION__, resourceName, frameworkName);
} else {
NSString * nameWithoutExtension = [path stringByDeletingPathExtension];
NSString * pathExtension = [path pathExtension];
NSString * nameWithoutExtension = [resourceName stringByDeletingPathExtension];
NSString * pathExtension = [resourceName pathExtension];
path = [bundleToUse pathForResource:nameWithoutExtension
ofType:pathExtension