Revision: 13632
          http://sourceforge.net/p/skim-app/code/13632
Author:   hofman
Date:     2023-09-03 16:00:30 +0000 (Sun, 03 Sep 2023)
Log Message:
-----------
add notes after setting pdf document, as that would clear the notes

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-09-03 15:39:49 UTC (rev 13631)
+++ trunk/SKMainWindowController.m      2023-09-03 16:00:30 UTC (rev 13632)
@@ -1099,8 +1099,6 @@
         }
         [pool release];
     }
-    if ([notesToAdd count] > 0)
-        [self insertNotes:notesToAdd atIndexes:[NSIndexSet 
indexSetWithIndexesInRange:NSMakeRange([notes count], [notesToAdd count])]];
     
     mwcFlags.addOrRemoveNotesInBulk = 0;
     
@@ -1107,6 +1105,9 @@
     if (pdfDocument)
         [self setPdfDocument:pdfDocument];
     
+    if ([notesToAdd count] > 0)
+        [self insertNotes:notesToAdd atIndexes:[NSIndexSet 
indexSetWithIndexesInRange:NSMakeRange([notes count], [notesToAdd count])]];
+    
     if ([[pdfView document] isLocked]) {
         [placeholderWidgetProperties release];
         placeholderWidgetProperties = [widgetProperties count] ? 
[widgetProperties copy] : nil;

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