Correct placement of subordinate objects, recursive method was passing the wrong element into itself when encoding windows and views

This commit is contained in:
Gregory John Casamento 2023-07-13 22:30:02 -04:00
parent eadd4e2ab2
commit b35158794f

View file

@ -3388,7 +3388,7 @@ static void _real_close(GormDocument *self,
else if ([obj isKindOfClass: [NSWindow class]])
{
[self _collectObjectsFromObject: [obj contentView]
withNode: node];
withNode: group];
}
else if ([obj isKindOfClass: [NSView class]])
{
@ -3399,7 +3399,7 @@ static void _real_close(GormDocument *self,
while ((v = [en nextObject]) != nil)
{
[self _collectObjectsFromObject: v
withNode: node];
withNode: group];
}
}
}