Revision: 14945
          http://sourceforge.net/p/skim-app/code/14945
Author:   hofman
Date:     2025-03-06 16:10:18 +0000 (Thu, 06 Mar 2025)
Log Message:
-----------
sufficient to compare the range length for range with location 0

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

Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m   2025-03-05 22:50:27 UTC (rev 14944)
+++ trunk/PDFSelection_SKExtensions.m   2025-03-06 16:10:18 UTC (rev 14945)
@@ -298,7 +298,7 @@
             for (ri = 0; ri < numRanges; ri++) {
                 NSRange textRange = [textRanges rangeAtIndex:ri];
                 NSTextStorage *textStorage = nil;
-                if (NSEqualRanges(textRange, NSMakeRange(0, [containerText 
length])))
+                if (textRange.length == [containerText length])
                     textStorage = containerText;
                 else
                     textStorage = [[NSTextStorage alloc] 
initWithAttributedString:[containerText 
attributedSubstringFromRange:textRange]];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to