Minor bugfix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3958 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-03-22 13:46:09 +00:00
parent b54c16fb31
commit baf38fda6e
2 changed files with 12 additions and 8 deletions

View file

@ -1,7 +1,9 @@
Mon Mar 22 12:50:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Mon Mar 22 13:12:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSView.m: implement lockFocus and unlockFocus
t
* Source/NSImage.m: ([+imageNamed:]) store new image in dictionary
with the name actually supplied.
Wed Mar 17 6:48:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSAffineTransform.m: bounding matrix of an unrotated rect

View file

@ -236,14 +236,16 @@ static NSDictionary* nsmapping = nil;
if ([path length] != 0)
{
NSImage* image = [[[NSImage alloc] initByReferencingFile:path]
autorelease];
NSImage *image;
image = [[self allocWithZone: NSDefaultMallocZone()]
initByReferencingFile: path];
if (image)
[image setName: [[path lastPathComponent]
stringByDeletingPathExtension]];
return image;
{
[image setName: aName];
[image release]; // Retained in dictionary.
}
return image;
}
}