Revision: 28882
http://sourceforge.net/p/bibdesk/svn/28882
Author: hofman
Date: 2024-04-30 21:57:29 +0000 (Tue, 30 Apr 2024)
Log Message:
-----------
check whether template for preview is not nil
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2024-04-30 20:17:43 UTC (rev 28881)
+++ trunk/bibdesk/BibDocument_UI.m 2024-04-30 21:57:29 UTC (rev 28882)
@@ -170,7 +170,7 @@
// make sure this is really one of the attributed string types...
if(([template templateFormat] & BDSKTemplateFormatRichText)){
templateString = [BDSKTemplateObjectProxy
attributedStringByParsingTemplate:template withObject:self publications:items
documentAttributes:&docAttributes];
- } else {
+ } else if (template) {
// parse as plain text, so the HTML is interpreted properly by
NSAttributedString
NSString *str = [BDSKTemplateObjectProxy
stringByParsingTemplate:template withObject:self publications:items];
NSArray *accessoryURLs = [template accessoryFileURLs];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit