Revision: 15390 http://sourceforge.net/p/skim-app/code/15390 Author: hofman Date: 2025-06-06 14:38:22 +0000 (Fri, 06 Jun 2025) Log Message: ----------- update comment, check number of widgets first
Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2025-06-06 14:20:56 UTC (rev 15389) +++ trunk/SKMainWindowController.m 2025-06-06 14:38:22 UTC (rev 15390) @@ -1008,7 +1008,7 @@ NSMutableIndexSet *pageIndexes = [NSMutableIndexSet indexSet]; if ([notesToRemove count]) { - // notesToRemove is either all notes, no notes, or non Skim notes + // notesToRemove is either [self notes], nil, or non Skim notes if (isConvert == NO) { [pdfView removePDFToolTipRects]; // remove the current annotations @@ -1026,7 +1026,7 @@ if (isConvert == NO) [self removeAllObjectsFromNotes]; } - if (notesToRemove && isConvert == NO) { + if (notesToRemove && isConvert == NO && [widgets count]) { for (PDFAnnotation *widget in widgets) { id origValue = [widgetValues objectForKey:widget]; if ([([widget objectValue] ?: @"") isEqual:(origValue ?: @"")] == NO) 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