Revision: 22436
http://sourceforge.net/p/bibdesk/svn/22436
Author: hofman
Date: 2018-07-18 12:26:32 +0000 (Wed, 18 Jul 2018)
Log Message:
-----------
add attributes, don't set
Modified Paths:
--------------
trunk/bibdesk/BibPref_AutoFile.m
trunk/bibdesk/BibPref_CiteKey.m
Modified: trunk/bibdesk/BibPref_AutoFile.m
===================================================================
--- trunk/bibdesk/BibPref_AutoFile.m 2018-07-18 12:23:45 UTC (rev 22435)
+++ trunk/bibdesk/BibPref_AutoFile.m 2018-07-18 12:26:32 UTC (rev 22436)
@@ -335,7 +335,7 @@
if ([[fieldEditor string] isEqualToString:[attrString string]]) {
NSTextStorage *textStorage = [fieldEditor textStorage];
[attrString enumerateAttributesInRange:NSMakeRange(0, [attrString
length]) options:0 usingBlock:^(NSDictionary *attrs, NSRange range, BOOL *stop){
- [textStorage setAttributes:attrs range:range];
+ [textStorage addAttributes:attrs range:range];
}];
}
}
Modified: trunk/bibdesk/BibPref_CiteKey.m
===================================================================
--- trunk/bibdesk/BibPref_CiteKey.m 2018-07-18 12:23:45 UTC (rev 22435)
+++ trunk/bibdesk/BibPref_CiteKey.m 2018-07-18 12:26:32 UTC (rev 22436)
@@ -241,12 +241,11 @@
NSTextView *fieldEditor = (NSTextView *)[formatSheetField currentEditor];
// get the attributed string from the format parser
NSAttributedString *attrString = [(BDSKFormatStringFormatter
*)[formatSheetField formatter] attributedString];
-
// get the attributes of the parsed string and apply them to our
NSTextStorage; it may not be safe to set it directly at this point
if ([[fieldEditor string] isEqualToString:[attrString string]]) {
NSTextStorage *textStorage = [fieldEditor textStorage];
[attrString enumerateAttributesInRange:NSMakeRange(0, [attrString
length]) options:0 usingBlock:^(NSDictionary *attrs, NSRange range, BOOL *stop){
- [textStorage setAttributes:attrs range:range];
+ [textStorage addAttributes:attrs range:range];
}];
}
}
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit