From: Adam M. <ama...@us...> - 2006-02-13 17:48:32
|
Update of /cvsroot/bibdesk/bibdesk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18726 Modified Files: Tag: BR_1x BibDocument_Groups.m Log Message: only display empty group if necessary Index: BibDocument_Groups.m =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/Attic/BibDocument_Groups.m,v retrieving revision 1.1.2.51 retrieving revision 1.1.2.52 diff -C2 -d -r1.1.2.51 -r1.1.2.52 *** BibDocument_Groups.m 13 Feb 2006 03:26:47 -0000 1.1.2.51 --- BibDocument_Groups.m 13 Feb 2006 17:48:20 -0000 1.1.2.52 *************** *** 220,226 **** // add the "empty" group at index 0; this is a group of pubs whose value is empty for this field, so they // will not be contained in any of the other groups for the currently selected group field (hence multiple selection is desirable) ! group = [[BDSKGroup alloc] initEmptyGroupWithClass:([[[BibTypeManager sharedManager] personFieldsSet] containsObject:groupField]?[BibAuthor class]:[NSString class]) key:groupField count:emptyCount]; ! [mutableGroups insertObject:group atIndex:0]; ! [group release]; [groups setArray:mutableGroups]; --- 220,228 ---- // add the "empty" group at index 0; this is a group of pubs whose value is empty for this field, so they // will not be contained in any of the other groups for the currently selected group field (hence multiple selection is desirable) ! if(emptyCount > 0){ ! group = [[BDSKGroup alloc] initEmptyGroupWithClass:([[[BibTypeManager sharedManager] personFieldsSet] containsObject:groupField]?[BibAuthor class]:[NSString class]) key:groupField count:emptyCount]; ! [mutableGroups insertObject:group atIndex:0]; ! [group release]; ! } [groups setArray:mutableGroups]; |