From: <ho...@us...> - 2006-11-30 21:01:17
|
Revision: 8640 http://svn.sourceforge.net/bibdesk/?rev=8640&view=rev Author: hofman Date: 2006-11-30 13:01:13 -0800 (Thu, 30 Nov 2006) Log Message: ----------- Invert boolean check Modified Paths: -------------- trunk/bibdesk/BibDocument.m Modified: trunk/bibdesk/BibDocument.m =================================================================== --- trunk/bibdesk/BibDocument.m 2006-11-30 19:23:44 UTC (rev 8639) +++ trunk/bibdesk/BibDocument.m 2006-11-30 21:01:13 UTC (rev 8640) @@ -1157,7 +1157,7 @@ // output the document's macros: if(isOK) tmpString = [[self macroResolver] bibTeXStringReturningError:&error]; - isOK = (nil != tmpString) && (NO == [outputData appendDataFromString:tmpString encoding:encoding error:&error]); + isOK = (nil != tmpString) && [outputData appendDataFromString:tmpString encoding:encoding error:&error]; if(NO == isOK) [error setValue:NSLocalizedString(@"Unable to convert macros.", @"string encoding error context") forKey:NSLocalizedRecoverySuggestionErrorKey]; @@ -1168,9 +1168,10 @@ while(isOK && (pub = [e nextObject])){ [outputData appendData:doubleNewlineData]; tmpString = [pub bibTeXStringDroppingInternal:drop error:&error]; - isOK = (nil != tmpString) && (NO == [outputData appendDataFromString:tmpString encoding:encoding error:&error]); - if(NO == isOK) + isOK = (nil != tmpString) && [outputData appendDataFromString:tmpString encoding:encoding error:&error]; + if(NO == isOK){ [error setValue:[NSString stringWithFormat:NSLocalizedString(@"Unable to convert item with cite key %@.", @"string encoding error context"), [pub citeKey]] forKey:NSLocalizedRecoverySuggestionErrorKey]; + } } // The data from groups is always UTF-8, and we shouldn't convert it unless we have an unparseable encoding; the comment key strings should be representable in any encoding This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |