Revision: 15155
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15155&view=rev
Author: hofman
Date: 2009-04-22 16:39:43 +0000 (Wed, 22 Apr 2009)
Log Message:
-----------
update empty category group count
Modified Paths:
--------------
trunk/bibdesk/BibDocument_Groups.m
Modified: trunk/bibdesk/BibDocument_Groups.m
===================================================================
--- trunk/bibdesk/BibDocument_Groups.m 2009-04-22 16:33:22 UTC (rev 15154)
+++ trunk/bibdesk/BibDocument_Groups.m 2009-04-22 16:39:43 UTC (rev 15155)
@@ -569,10 +569,12 @@
// 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) {
- if ([oldGroups count] && [[oldGroups objectAtIndex:0] isEmpty])
+ if ([oldGroups count] && [[oldGroups objectAtIndex:0] isEmpty]) {
group = [[oldGroups objectAtIndex:0] retain];
- else
+ [group setCount:emptyCount];
+ } else {
group = [[BDSKCategoryGroup alloc]
initEmptyGroupWithKey:groupField count:emptyCount];
+ }
[mutableGroups insertObject:group atIndex:0];
[group release];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit