Revision: 14787
          http://sourceforge.net/p/skim-app/code/14787
Author:   hofman
Date:     2024-12-08 15:21:54 +0000 (Sun, 08 Dec 2024)
Log Message:
-----------
no need for method to redisplay pdfview fpr note on different page

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

Modified: trunk/PDFView_SKExtensions.h
===================================================================
--- trunk/PDFView_SKExtensions.h        2024-12-08 15:17:51 UTC (rev 14786)
+++ trunk/PDFView_SKExtensions.h        2024-12-08 15:21:54 UTC (rev 14787)
@@ -55,7 +55,6 @@
 - (BOOL)isPageAtIndexDisplayed:(NSUInteger)pageIndex;
 
 - (void)setNeedsDisplayInRect:(NSRect)rect ofPage:(PDFPage *)page;
-- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation 
onPage:(PDFPage *)page;
 - (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation;
 - (void)setNeedsDisplayForAddedAnnotation:(PDFAnnotation *)annotation 
onPage:(PDFPage *)page;
 - (void)setNeedsDisplayForRemovedAnnotation:(PDFAnnotation *)annotation 
onPage:(PDFPage *)page;

Modified: trunk/PDFView_SKExtensions.m
===================================================================
--- trunk/PDFView_SKExtensions.m        2024-12-08 15:17:51 UTC (rev 14786)
+++ trunk/PDFView_SKExtensions.m        2024-12-08 15:21:54 UTC (rev 14787)
@@ -113,7 +113,8 @@
     }
 }
 
-- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation 
onPage:(PDFPage *)page {
+- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation {
+    PDFPage *page = [annotation page];
     NSView *pageView = [self safePageViewForPage:page];
     if (pageView)
         [pageView updateAnnotation:annotation];
@@ -122,10 +123,6 @@
     [self annotationsChangedOnPage:page];
 }
 
-- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation {
-    [self setNeedsDisplayForAnnotation:annotation onPage:[annotation page]];
-}
-
 - (void)requiresDisplay {
     [self setNeedsDisplay:YES];
 }

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-12-08 15:17:51 UTC (rev 14786)
+++ trunk/SKPDFView.m   2024-12-08 15:21:54 UTC (rev 14787)
@@ -2834,7 +2834,8 @@
     [self goToRect:[annotation bounds] onPage:[annotation page]];
 }
 
-- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation 
onPage:(PDFPage *)page {
+- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation {
+    PDFPage *page = [annotation page];
     NSRect rect = [annotation displayRect];
     if (annotation == currentAnnotation) {
         CGFloat margin = (([annotation isResizable] || [annotation isNote]) ? 
HANDLE_SIZE  : 1.0) / [self scaleFactor];

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