From 4482089712a0c7dbbbd235093b4b50ca6ad3452e Mon Sep 17 00:00:00 2001 From: Didier Korthoudt Date: Wed, 20 Jan 2016 22:08:10 +0100 Subject: [PATCH] FIXED: corrected replaceSubview parameters order --- AppKit/CPBox.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPBox.j b/AppKit/CPBox.j index d36fb85e8..717229ad2 100644 --- a/AppKit/CPBox.j +++ b/AppKit/CPBox.j @@ -619,7 +619,7 @@ var CPBoxTypeKey = @"CPBoxTypeKey", if (_boxType != CPBoxSeparator) { _contentView = [aCoder decodeObjectForKey:CPBoxContentView] || [[CPView alloc] initWithFrame:[self bounds]]; - [self replaceSubview:_contentView with:[self subviews][0]]; + [self replaceSubview:[self subviews][0] with:_contentView]; } [self setAutoresizesSubviews:YES];