Revision: 16242
          http://sourceforge.net/p/skim-app/code/16242
Author:   hofman
Date:     2026-05-07 17:13:06 +0000 (Thu, 07 May 2026)
Log Message:
-----------
revert previous commit, edge cases can never occur

Modified Paths:
--------------
    trunk/PDFSelection_SKExtensions.m

Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m   2026-05-07 17:11:29 UTC (rev 16241)
+++ trunk/PDFSelection_SKExtensions.m   2026-05-07 17:13:06 UTC (rev 16242)
@@ -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)
-        [attributedSample insertAttributedString:[[NSAttributedString alloc] 
initWithString:ellipse attributes:attributes] atIndex:0];
+        [attributedString insertString:ellipse atIndex:0];
     if (end < length)
-        [attributedSample appendAttributedString:[[NSAttributedString alloc] 
initWithString:ellipse attributes:attributes]];
-    [attributedSample fixAttributesInRange:NSMakeRange(0, [attributedSample 
length])];
+        [attributedString appendString:ellipse];
     
        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

Reply via email to