Fixed: pressing the up arrow key in a table view would cause a crash if the previous selection was non continuous.

This commit is contained in:
Alexander Ljungberg authored and Klaas Pieter Annema committed 2011-07-07 16:04:11 +02:00
1 parent 49c29ded92
commit 110d4c478d
1 file changed
+1 -1
+1 -1
View File
@@ -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;