Fixed: app would freeze on collection view setSelectionIndexes:nil.

This commit is contained in:
Alexander Ljungberg committed 2012-02-17 14:23:21 +00:00
1 parent 4aa3824a2a
commit a1bc5ad4d3
1 file changed
+2
+2
View File
@@ -340,6 +340,8 @@
*/
- (void)setSelectionIndexes:(CPIndexSet)anIndexSet
{
if (!anIndexSet)
anIndexSet = [CPIndexSet indexSet];
if (!_isSelectable || [_selectionIndexes isEqual:anIndexSet])
return;