Clipview redisplay fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7854 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-10-20 04:19:22 +00:00
parent f2691db38d
commit c95e77dadb
3 changed files with 22 additions and 18 deletions

View file

@ -176,15 +176,18 @@ static Class cacheClass = 0;
/* If there is no image with that name, search in the main bundle */
if (!nameDict || ![nameDict objectForKey: aName])
{
NSString* ext;
NSString* path = nil;
NSBundle* main_bundle;
NSArray *array;
NSString *the_name = aName;
NSString *ext;
NSString *path = nil;
NSBundle *main_bundle;
NSArray *array;
NSString *the_name = aName;
main_bundle = [NSBundle mainBundle];
ext = [aName pathExtension];
if (ext && [ext length] == 0)
ext = nil;
ext = [aName pathExtension];
if (ext != nil && [ext length] == 0)
{
ext = nil;
}
/* Check if extension is one of the image types */
array = [self imageFileTypes];