From 110d4c478d6196bd4ccc56d88000bdc8fa317c23 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Sat, 11 Jun 2011 04:21:49 -0700 Subject: [PATCH] Fixed: pressing the up arrow key in a table view would cause a crash if the previous selection was non continuous. --- AppKit/CPTableView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 0677dca7d..2853079a4 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -4609,7 +4609,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad } _wasSelectionBroken = true; } - else if (_wasSelectionBroken && ((shouldGoUpward && i !== [selectedIndexes firstIndex]) || (!shouldGoUpward && i !== [selectedIndexes lastindex]))) + else if (_wasSelectionBroken && ((shouldGoUpward && i !== [selectedIndexes firstIndex]) || (!shouldGoUpward && i !== [selectedIndexes lastIndex]))) { shouldGoUpward ? i = [selectedIndexes firstIndex] - 1 : i = [selectedIndexes lastIndex]; _wasSelectionBroken = false;