Fixed: variable move in previous commit broke selection notifications.

This commit is contained in:
Aparajita Fishman
2013-07-26 12:17:52 -04:00
parent 2da6c88fad
commit f3f1f72ae2
+3 -3
View File
@@ -2381,14 +2381,14 @@ NOT YET IMPLEMENTED
if (hangingSelections > 0)
{
// For optimal performance, only send a notification if indices were actually removed.
var previousSelectionCount = [_selectedRowIndexes count];
[_selectedRowIndexes removeIndexesInRange:CPMakeRange(_numberOfRows, hangingSelections)];
if (![_selectedRowIndexes containsIndex:[self selectedRow]])
_lastSelectedRow = CPNotFound;
// For optimal performance, only send a notification if indices were actually removed.
var previousSelectionCount = [_selectedRowIndexes count];
if (previousSelectionCount > [_selectedRowIndexes count])
[self _noteSelectionDidChange];
}