Added code to decode old cells as well because decoding the popup button needs

it


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12767 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2002-02-25 20:07:45 +00:00
parent a324ac0bdf
commit b98809dc01

View file

@ -677,6 +677,12 @@ static NSImage *arrowImageH = nil;
ASSIGN (_menuItem, [aDecoder decodeObject]);
if ([aDecoder versionForClassName: @"NSMenuItemCell"] < 2)
{
/* In version 1, we used to encode the _menuView here. */
[aDecoder decodeObject];
}
_needs_sizing = YES;
return self;