Revision: 16241
http://sourceforge.net/p/skim-app/code/16241
Author: hofman
Date: 2026-05-07 17:11:29 +0000 (Thu, 07 May 2026)
Log Message:
-----------
make sure ellipsis are added with correct attributes
Modified Paths:
--------------
trunk/PDFSelection_SKExtensions.m
Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m 2026-05-07 17:01:40 UTC (rev 16240)
+++ trunk/PDFSelection_SKExtensions.m 2026-05-07 17:11:29 UTC (rev 16241)
@@ -170,11 +170,11 @@
// Use bold font for the text range where the search term was found.
[attributedSample addAttribute:NSFontAttributeName value:[NSFont
boldSystemFontOfSize:fontSize] range:foundRange];
- attributedString = [attributedSample mutableString];
if (start > 0)
- [attributedString insertString:ellipse atIndex:0];
+ [attributedSample insertAttributedString:[[NSAttributedString alloc]
initWithString:ellipse attributes:attributes] atIndex:0];
if (end < length)
- [attributedString appendString:ellipse];
+ [attributedSample appendAttributedString:[[NSAttributedString alloc]
initWithString:ellipse attributes:attributes]];
+ [attributedSample fixAttributesInRange:NSMakeRange(0, [attributedSample
length])];
return attributedSample;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit