Revision: 16356
http://sourceforge.net/p/skim-app/code/16356
Author: hofman
Date: 2026-06-04 15:30:45 +0000 (Thu, 04 Jun 2026)
Log Message:
-----------
don't set unseet string of new annotattion to empty string, nil is now OK
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-06-04 14:21:07 UTC (rev 16355)
+++ trunk/SKPDFView.m 2026-06-04 15:30:45 UTC (rev 16356)
@@ -2421,7 +2421,7 @@
}
NSInteger disableUpdateString = [[NSUserDefaults standardUserDefaults]
integerForKey:SKDisableUpdateContentsFromEnclosedTextKey];
- NSString *text = disableUpdateString < 2 ? ([selection cleanedString] ?:
@"") : @"";
+ NSString *text = disableUpdateString < 2 ? [selection cleanedString] : nil;
NSMutableArray *newAnnotations = [NSMutableArray array];
for (PDFPage *aPage in [selection pages]) {
PDFAnnotation *newAnnotation = [PDFAnnotation
newSkimNoteWithSelection:selection forPage:aPage forType:type];
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