mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 09:51:08 +00:00
correct decoding of named images from keyed archivers
As @tedge noted on the original pull request for this work, I didn't return the correct object in the keyed archiver case.
This commit is contained in:
parent
93218f7fc1
commit
aff13d41bb
1 changed files with 1 additions and 0 deletions
|
@ -1985,6 +1985,7 @@ static NSSize GSResolutionOfImageRep(NSImageRep *rep)
|
|||
replacementImage = [[NSImage alloc] init];
|
||||
[replacementImage setName: imageName];
|
||||
replacementImage->_flags.archiveByName = YES;
|
||||
self = replacementImage;
|
||||
}
|
||||
if ([coder containsValueForKey: @"NSColor"])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue