Revision: 16553
          http://sourceforge.net/p/skim-app/code/16553
Author:   hofman
Date:     2026-09-27 16:20:59 +0000 (Sun, 27 Sep 2026)
Log Message:
-----------
implicit copy of transformed paths

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

Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m  2026-09-27 16:08:25 UTC (rev 16552)
+++ trunk/PDFAnnotation_SKExtensions.m  2026-09-27 16:20:59 UTC (rev 16553)
@@ -634,11 +634,12 @@
 }
 
 - (NSArray *)pagePaths {
-    NSMutableArray *paths = [[NSMutableArray alloc] initWithArray:[self paths] 
copyItems:YES];
+    NSMutableArray *paths = [[NSMutableArray alloc] init];
     NSRect bounds = [self bounds];
     NSAffineTransform *transform = [NSAffineTransform transform];
     [transform translateXBy:NSMinX(bounds) yBy:NSMinY(bounds)];
-    [paths 
makeObjectsPerformSelector:@selector(transformUsingAffineTransform:) 
withObject:transform];
+    for (NSBezierPath *path in [self paths])
+        [paths addObject:[transform transformBezierPath:path]];
     return paths;
 }
 

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