Revision: 15444 http://sourceforge.net/p/skim-app/code/15444 Author: hofman Date: 2025-06-11 16:41:12 +0000 (Wed, 11 Jun 2025) Log Message: ----------- make sure we don't add/remove nothing in bulk, e.g. when adding from file with only widgets
Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2025-06-11 16:32:39 UTC (rev 15443) +++ trunk/SKMainWindowController.m 2025-06-11 16:41:12 UTC (rev 15444) @@ -965,6 +965,9 @@ } - (void)addAnnotations:(NSArray *)notesAndPagesToAdd removeAnnotations:(NSArray *)notesToRemove { + if ([notesAndPagesToAdd count] == 0 && [notesToRemove count] == 0) + return; + PDFDocument *pdfDoc = [pdfView document]; NSMutableIndexSet *pageIndexes = [NSMutableIndexSet indexSet]; NSMutableArray *addedNotes = [NSMutableArray array]; 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