Restore older behavior for version 0 of NSSplitView. The previous change broke some older .gorm files.

This commit is contained in:
Gregory John Casamento 2021-12-01 19:42:40 -05:00
parent d20fa6cc61
commit 1d3f33b694

View file

@ -1518,7 +1518,17 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
[aDecoder decodeValueOfObjCType: @encode(id) at: &_dividerColor];
// Decode non-object data.
[aDecoder decodeValueOfObjCType: @encode(CGFloat) at: &_draggedBarWidth];
if (version >= 1)
{
[aDecoder decodeValueOfObjCType: @encode(CGFloat) at: &_draggedBarWidth];
}
else
{
int barWidth = 0;
decode_NSInteger(aDecoder, &barWidth);
_draggedBarWidth = (CGFloat)barWidth;
}
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_isVertical];
if (version >= 1)