Revision: 13780
          http://sourceforge.net/p/skim-app/code/13780
Author:   hofman
Date:     2023-11-19 17:18:50 +0000 (Sun, 19 Nov 2023)
Log Message:
-----------
don't pass layerController in delegate methods

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2023-11-19 17:10:36 UTC (rev 13779)
+++ trunk/SKPDFView.m   2023-11-19 17:18:50 UTC (rev 13780)
@@ -172,7 +172,7 @@
 };
 
 @protocol SKLayerDelegate <NSObject>
-- (void)drawLayerController:(SKLayerController *)controller 
inContext:(CGContextRef)context;
+- (void)drawLayerControllerInContext:(CGContextRef)context;
 @end
 
 // this class is a proxy for the layer delegate
@@ -518,8 +518,8 @@
     [self drawPageHighlights:pdfPage toContext:context];
 }
 
-- (void)drawLayerController:(SKLayerController *)controller 
inContext:(CGContextRef)context {
-    if ([controller type] == SKLayerTypeNote) {
+- (void)drawLayerControllerInContext:(CGContextRef)context {
+    if ([highlightLayerController type] == SKLayerTypeNote) {
         if (currentAnnotation == nil)
             return;
         PDFPage *page = [currentAnnotation page];
@@ -532,7 +532,7 @@
         [currentAnnotation drawSelectionHighlightWithLineWidth:1.0 / 
scaleFactor active:[self drawsActiveSelections] inContext:context];
         CGContextRestoreGState(context);
     } else {
-        CGRect rect = NSRectToCGRect([controller rect]);
+        CGRect rect = NSRectToCGRect([highlightLayerController rect]);
         if (CGRectIsEmpty(rect))
             return;
         rect = CGContextConvertRectToUserSpace(context, 
CGRectIntegral(CGContextConvertRectToDeviceSpace(context, 
NSRectToCGRect(rect))));
@@ -5487,7 +5487,7 @@
 }
 
 - (void)drawLayer:(CALayer *)aLayer inContext:(CGContextRef)context {
-    [delegate drawLayerController:self inContext:context];
+    [delegate drawLayerControllerInContext:context];
 }
 
 @end

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