From 3d1992440b984c443cc490c5e4cf3be13e64e4a4 Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Thu, 2 Dec 2010 19:50:55 -0500 Subject: [PATCH] Fix drag and drop bug --- AppKit/CPTableView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index a808ebe2c..5a0c71460 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -3412,7 +3412,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; numberOfRows = [self numberOfRows]; if (row < 0) - row = (_cachedRowHeights[numberOfRows-1].heightAboveRow + _cachedRowHeights[numberOfRows-1].height + _intercellSpacing.height < dragPoint.y) ? numberOfRows : row; + row = (_CGRectGetMaxY(rect) < dragPoint.y) ? numberOfRows : row; else if (dragPoint.y > MAX(bottomThirty, bottomPoint - 6)) row = lowerRow;