mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:00:38 +00:00
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:
parent
ad764f5da2
commit
2e8fda0289
2 changed files with 12 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue