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:
Graham Lee 2017-10-29 07:11:37 +00:00 committed by Ivan Vučica
parent 93218f7fc1
commit aff13d41bb

View file

@ -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"])
{