From: <ho...@us...> - 2006-03-26 15:51:07
|
Revision: 5995 Author: hofman Date: 2006-03-26 07:50:56 -0800 (Sun, 26 Mar 2006) ViewCVS: http://svn.sourceforge.net/bibdesk/?rev=5995&view=rev Log Message: ----------- Return 0 fileOrder for items without a document (shared items). Modified Paths: -------------- trunk/bibdesk/BibItem.m Modified: trunk/bibdesk/BibItem.m =================================================================== --- trunk/bibdesk/BibItem.m 2006-03-26 12:55:01 UTC (rev 5994) +++ trunk/bibdesk/BibItem.m 2006-03-26 15:50:56 UTC (rev 5995) @@ -393,6 +393,8 @@ // accessors for fileorder - (NSNumber *)fileOrder{ + if (document == nil) + return 0; return [NSNumber numberWithInt:[[document publications] indexOfObjectIdenticalTo:self] + 1]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |