From 3b85a67faff38d1bb86bb3646559db3bda28219a Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Sun, 18 Mar 2012 18:01:24 +0000 Subject: [PATCH] Fixed: table column divider lines were drawn on top of the header bottom line. --- AppKit/CPTableHeaderView.j | 2 +- AppKit/_CPCornerView.j | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTableHeaderView.j b/AppKit/CPTableHeaderView.j index 3155ae5c7..1ffcf2334 100644 --- a/AppKit/CPTableHeaderView.j +++ b/AppKit/CPTableHeaderView.j @@ -643,7 +643,7 @@ var _CPTableColumnHeaderViewStringValueKey = @"_CPTableColumnHeaderViewStringVal columnMaxX = _CGRectGetMaxX(columnToStroke); CGContextMoveToPoint(context, FLOOR(columnMaxX) - 0.5, ROUND(_CGRectGetMinY(columnToStroke))); - CGContextAddLineToPoint(context, FLOOR(columnMaxX) - 0.5, ROUND(_CGRectGetMaxY(columnToStroke))); + CGContextAddLineToPoint(context, FLOOR(columnMaxX) - 0.5, ROUND(_CGRectGetMaxY(columnToStroke)) - 1.0); } CGContextClosePath(context); CGContextStrokePath(context); diff --git a/AppKit/_CPCornerView.j b/AppKit/_CPCornerView.j index c68d8d4f5..27df6c25c 100644 --- a/AppKit/_CPCornerView.j +++ b/AppKit/_CPCornerView.j @@ -46,7 +46,7 @@ CGContextSetStrokeColor(context, [self currentValueForThemeAttribute:@"divider-color"]); CGContextMoveToPoint(context, _CGRectGetMinX(aRect) + 0.5, ROUND(_CGRectGetMinY(aRect))); - CGContextAddLineToPoint(context, _CGRectGetMinX(aRect) + 0.5, ROUND(_CGRectGetMaxY(aRect))); + CGContextAddLineToPoint(context, _CGRectGetMinX(aRect) + 0.5, ROUND(_CGRectGetMaxY(aRect)) - 1.0); CGContextClosePath(context); CGContextStrokePath(context);