Revision: 14354
          http://sourceforge.net/p/skim-app/code/14354
Author:   hofman
Date:     2024-06-30 16:47:14 +0000 (Sun, 30 Jun 2024)
Log Message:
-----------
keep only CGPath method with scale factor

Modified Paths:
--------------
    trunk/NSBezierPath_SKExtensions.h
    trunk/NSBezierPath_SKExtensions.m
    trunk/PDFAnnotationInk_SKExtensions.m

Modified: trunk/NSBezierPath_SKExtensions.h
===================================================================
--- trunk/NSBezierPath_SKExtensions.h   2024-06-30 16:22:26 UTC (rev 14353)
+++ trunk/NSBezierPath_SKExtensions.h   2024-06-30 16:47:14 UTC (rev 14354)
@@ -47,8 +47,6 @@
 
 - (NSPoint)associatedPointForElementAtIndex:(NSUInteger)anIndex;
 
-@property (nonatomic, readonly) CGPathRef copyCGPath;
-
 - (CGPathRef)copyCGPathWithScaleFactor:(CGFloat)scale;
 
 - (void)halfEllipseFromPoint:(NSPoint)halfwayPoint toPoint:(NSPoint)endPoint;

Modified: trunk/NSBezierPath_SKExtensions.m
===================================================================
--- trunk/NSBezierPath_SKExtensions.m   2024-06-30 16:22:26 UTC (rev 14353)
+++ trunk/NSBezierPath_SKExtensions.m   2024-06-30 16:47:14 UTC (rev 14354)
@@ -92,10 +92,6 @@
     return bounds;
 }
 
-- (CGPathRef)copyCGPath {
-    return [self copyCGPathWithScaleFactor:1.0];
-}
-
 - (CGPathRef)copyCGPathWithScaleFactor:(CGFloat)scale {
     CGMutablePathRef mutablePath = CGPathCreateMutable();
     NSInteger numElements = [self elementCount];

Modified: trunk/PDFAnnotationInk_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationInk_SKExtensions.m       2024-06-30 16:22:26 UTC (rev 
14353)
+++ trunk/PDFAnnotationInk_SKExtensions.m       2024-06-30 16:47:14 UTC (rev 
14354)
@@ -185,7 +185,7 @@
     t = CGAffineTransformMakeTranslation(NSMinX(bounds), NSMinY(bounds));
     CGMutablePathRef path = CGPathCreateMutable();
     for (NSBezierPath *aPath in [self paths]) {
-        CGPathRef cgPath = [aPath copyCGPath];
+        CGPathRef cgPath = [aPath copyCGPathWithScaleFactor:1.0];
         CGPathAddPath(path, &t, cgPath);
         CGPathRelease(cgPath);
     }

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