diff --git a/AppKit/CPArrayController.j b/AppKit/CPArrayController.j index 4e3c3c04f..5cf53d08f 100644 --- a/AppKit/CPArrayController.j +++ b/AppKit/CPArrayController.j @@ -914,7 +914,7 @@ var newObject = [self automaticallyPreparesContent] ? [self newObject] : [self _defaultNewObject], lastSelectedIndex = [_selectionIndexes lastIndex]; - if (lastSelectedIndex) + if (lastSelectedIndex != CPNotFound) [self insertObject:newObject atArrangedObjectIndex:lastSelectedIndex]; else [self addObject:newObject];