mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 01:20:59 +00:00
Fix small bug in last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28996 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5a5827272
commit
81a8907f45
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-11-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSImage.m (-copyWithZone:): Set the name of the copy to
|
||||
nil, not that of the original image.
|
||||
|
||||
2009-11-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSImage.m: fixup copy/dealloc handling of named images
|
||||
|
|
|
@ -432,7 +432,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id)initWithContentsOfURL:(NSURL *)anURL
|
||||
- (id) initWithContentsOfURL: (NSURL *)anURL
|
||||
{
|
||||
NSArray *array = [NSImageRep imageRepsWithContentsOfURL: anURL];
|
||||
|
||||
|
@ -503,7 +503,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
|
||||
copy = (NSImage*)NSCopyObject (self, 0, zone);
|
||||
|
||||
_name = nil;
|
||||
copy->_name = nil;
|
||||
RETAIN(_fileName);
|
||||
RETAIN(_color);
|
||||
copy->_lockedView = nil;
|
||||
|
|
Loading…
Reference in a new issue