Revision: 13633
http://sourceforge.net/p/skim-app/code/13633
Author: hofman
Date: 2023-09-03 16:10:04 +0000 (Sun, 03 Sep 2023)
Log Message:
-----------
don't bother removing notes when setting a new pdf document
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2023-09-03 16:00:30 UTC (rev 13632)
+++ trunk/SKMainWindowController.m 2023-09-03 16:10:04 UTC (rev 13633)
@@ -1058,12 +1058,14 @@
// remove the current annotations
[pdfView setCurrentAnnotation:nil];
}
- for (annotation in [[notesToRemove copy] autorelease]) {
- [pageIndexes addIndex:[annotation pageIndex]];
- PDFAnnotation *popup = [annotation popup];
- if (popup)
- [pdfDoc removeAnnotation:popup];
- [pdfDoc removeAnnotation:annotation];
+ if (pdfDocument == nil) {
+ for (annotation in [[notesToRemove copy] autorelease]) {
+ [pageIndexes addIndex:[annotation pageIndex]];
+ PDFAnnotation *popup = [annotation popup];
+ if (popup)
+ [pdfDoc removeAnnotation:popup];
+ [pdfDoc removeAnnotation:annotation];
+ }
}
if (removeAllNotes)
[self removeAllObjectsFromNotes];
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