Revision: 21509 http://sourceforge.net/p/bibdesk/svn/21509 Author: hofman Date: 2017-08-08 14:51:39 +0000 (Tue, 08 Aug 2017) Log Message: ----------- we need to check for forward crossers change only when setting crossers
Modified Paths: -------------- trunk/bibdesk/BibItem.m Modified: trunk/bibdesk/BibItem.m =================================================================== --- trunk/bibdesk/BibItem.m 2017-08-08 14:50:16 UTC (rev 21508) +++ trunk/bibdesk/BibItem.m 2017-08-08 14:51:39 UTC (rev 21509) @@ -1136,6 +1136,8 @@ NSString *aCiteKey = [self citeKey]; if ([aCiteKey isCaseInsensitiveEqual:aCrossref]) errorCode = BDSKSelfCrossrefError; + else if ([NSString isEmptyString:[[[owner publications] itemForCiteKey:aCrossref] valueOfField:BDSKCrossrefString inherit:NO]] == NO) + errorCode = BDSKChainCrossrefError; else if ([self citeKeyIsCrossreffed:aCiteKey]) errorCode = BDSKIsCrossreffedCrossrefError; } @@ -1148,8 +1150,6 @@ if ([NSString isEmptyString:aCrossref] == NO) { if ([aCiteKey isCaseInsensitiveEqual:aCrossref]) errorCode = BDSKSelfCrossrefError; - else if ([NSString isEmptyString:[[[owner publications] itemForCiteKey:aCrossref] valueOfField:BDSKCrossrefString inherit:NO]] == NO) - errorCode = BDSKChainCrossrefError; else if ([self citeKeyIsCrossreffed:aCiteKey]) errorCode = BDSKIsCrossreffedCrossrefError; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit