From d73450d8fa9cc168e048288a1c2dde13fa581e4c Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Mon, 15 Dec 2008 21:18:36 -0800 Subject: [PATCH] CPSplitView fix for more than one splitter --- AppKit/CPSplitView.j | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/AppKit/CPSplitView.j b/AppKit/CPSplitView.j index 028d85164..e6c07a987 100644 --- a/AppKit/CPSplitView.j +++ b/AppKit/CPSplitView.j @@ -190,9 +190,11 @@ var CPSplitViewHorizontalImage = nil, { var count = [_subviews count] - 1; - if (count > 0) - while (count--) - [self drawDividerInRect:[self rectOfDividerAtIndex:count]]; + while ((count--) > 0) + { + _drawingDivider = count; + [self drawDividerInRect:[self rectOfDividerAtIndex:count]]; + } } - (void)drawDividerInRect:(CGRect)aRect