Revision: 15430
http://sourceforge.net/p/skim-app/code/15430
Author: hofman
Date: 2025-06-11 08:44:44 +0000 (Wed, 11 Jun 2025)
Log Message:
-----------
simply add new annotations to new PDFDocument, as nothing observes notifcations
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2025-06-10 16:45:03 UTC (rev 15429)
+++ trunk/SKMainWindowController.m 2025-06-11 08:44:44 UTC (rev 15430)
@@ -1153,18 +1153,15 @@
NSMutableArray *addedNotes = [NSMutableArray array];
BOOL shouldDisplay = [pdfView hideNotes] == NO;
- mwcFlags.addOrRemoveNotesInBulk = 1;
-
for (NSArray *annotationAndPage in notesAndPagesToAdd) {
PDFAnnotation *annotation = [annotationAndPage firstObject];
[annotation setShouldDisplay:shouldDisplay];
[annotation setShouldPrint:shouldDisplay];
- [pdfDoc addAnnotation:annotation toPage:[annotationAndPage
lastObject]];
+ // there is nothing to observe PDFDocument notifications at
this point
+ [[annotationAndPage lastObject] addAnnotation:annotation];
[addedNotes addObject:annotation];
}
- mwcFlags.addOrRemoveNotesInBulk = 0;
-
[self insertNotes:addedNotes atIndexes:[NSIndexSet
indexSetWithIndexesInRange:NSMakeRange(0, [addedNotes count])]];
}
}
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