From b35158794ff8b0effe16ff4e00a71655298d7ec7 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Thu, 13 Jul 2023 22:30:02 -0400 Subject: [PATCH] Correct placement of subordinate objects, recursive method was passing the wrong element into itself when encoding windows and views --- GormCore/GormDocument.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GormCore/GormDocument.m b/GormCore/GormDocument.m index 8a219604..42e6c533 100644 --- a/GormCore/GormDocument.m +++ b/GormCore/GormDocument.m @@ -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]; } } }