Revision: 14944 http://sourceforge.net/p/skim-app/code/14944 Author: hofman Date: 2025-03-05 22:50:27 +0000 (Wed, 05 Mar 2025) Log Message: ----------- get textStorage length from text range
Modified Paths: -------------- trunk/PDFSelection_SKExtensions.m Modified: trunk/PDFSelection_SKExtensions.m =================================================================== --- trunk/PDFSelection_SKExtensions.m 2025-03-05 10:41:09 UTC (rev 14943) +++ trunk/PDFSelection_SKExtensions.m 2025-03-05 22:50:27 UTC (rev 14944) @@ -269,7 +269,7 @@ #define CHARACTERS_KEY @"characters" // macro to create subTextStorages lazily only when needed -#define subTextStorages_count ([key isEqualToString:CHARACTERS_KEY] ? [textStorage length] : [(subTextStorages ?: (subTextStorages = [textStorage valueForKey:key])) count]) +#define subTextStorages_count ([key isEqualToString:CHARACTERS_KEY] ? textRange.length : [(subTextStorages ?: (subTextStorages = [textStorage valueForKey:key])) count]) static NSArray *characterRangesAndContainersForSpecifier(NSScriptObjectSpecifier *specifier, BOOL continuous) { if ([specifier isKindOfClass:[NSScriptObjectSpecifier class]] == NO) 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