mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
21fa8a7d68
commit
90cba28466
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue