From e8ac94f8daab850dd1a753e9eb5ca76ca76035f8 Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Thu, 4 Feb 2010 00:41:15 -0500 Subject: [PATCH] Improved logic for drawing highlighted grid lines. --- AppKit/CPTableView.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index fc74313cd..a9dbdca09 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -2173,8 +2173,8 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; } - //If we're at the last for of the selection don't draw the bottom line... - if(i !== count2 -1) + //if the row after the current row is not selected then there is no need to draw the bottom grid line white. + if([indexes containsObject:indexes[i]+1]) { CGContextMoveToPoint(context, minX, maxY); CGContextAddLineToPoint(context, maxX, maxY);