mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
Restore older behavior for version 0 of NSSplitView. The previous change broke some older .gorm files.
This commit is contained in:
parent
d20fa6cc61
commit
1d3f33b694
1 changed files with 11 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue