Revision: 14786
http://sourceforge.net/p/skim-app/code/14786
Author: hofman
Date: 2024-12-08 15:17:51 +0000 (Sun, 08 Dec 2024)
Log Message:
-----------
no need for method to redisplay pdfview fpr note on different page
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKSnapshotWindowController.h
trunk/SKSnapshotWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-12-08 15:03:32 UTC (rev 14785)
+++ trunk/SKMainWindowController.m 2024-12-08 15:17:51 UTC (rev 14786)
@@ -2702,12 +2702,12 @@
for (SKSnapshotWindowController *wc in snapshots) {
if ([wc isPageVisible:[note page]]) {
[self snapshotNeedsUpdate:wc placeholder:NO];
- [wc setNeedsDisplayForAnnotation:note onPage:page];
+ [wc setNeedsDisplayForAnnotation:note];
}
}
[pdfView setNeedsDisplayForAnnotation:note];
- [secondaryPdfView setNeedsDisplayForAnnotation:note
onPage:page];
+ [secondaryPdfView setNeedsDisplayForAnnotation:note];
if (NSIsEmptyRect(oldRect) == NO) {
if ([note isResizable]) {
CGFloat margin = 4.0 / [pdfView scaleFactor];
Modified: trunk/SKSnapshotWindowController.h
===================================================================
--- trunk/SKSnapshotWindowController.h 2024-12-08 15:03:32 UTC (rev 14785)
+++ trunk/SKSnapshotWindowController.h 2024-12-08 15:17:51 UTC (rev 14786)
@@ -104,7 +104,7 @@
- (void)handleDidRemoveAnnotationNotification:(NSNotification *)notification;
- (void)handleDidMoveAnnotationNotification:(NSNotification *)notification;
-- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation
onPage:(nullable PDFPage *)page;
+- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation;
@end
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2024-12-08 15:03:32 UTC (rev 14785)
+++ trunk/SKSnapshotWindowController.m 2024-12-08 15:17:51 UTC (rev 14786)
@@ -130,8 +130,8 @@
return [displayName stringByAppendingEmDashAndString:[NSString
stringWithFormat:NSLocalizedString(@"Page %@", @""), [self pageLabel]]];
}
-- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation
onPage:(PDFPage *)page {
- [pdfView setNeedsDisplayForAnnotation:annotation onPage:page];
+- (void)setNeedsDisplayForAnnotation:(PDFAnnotation *)annotation {
+ [pdfView setNeedsDisplayForAnnotation:annotation];
}
- (void)redisplay {
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