Revision: 15098 http://sourceforge.net/p/skim-app/code/15098 Author: hofman Date: 2025-04-07 14:13:23 +0000 (Mon, 07 Apr 2025) Log Message: ----------- Only set string of joined ink notes when old notes had a string
Modified Paths: -------------- trunk/SKPDFView.m Modified: trunk/SKPDFView.m =================================================================== --- trunk/SKPDFView.m 2025-04-07 14:02:59 UTC (rev 15097) +++ trunk/SKPDFView.m 2025-04-07 14:13:23 UTC (rev 15098) @@ -4165,7 +4165,8 @@ NSString *string2 = [newCurrentAnnotation string]; newAnnotation = [PDFAnnotation newSkimNoteWithPaths:paths]; - [newAnnotation setString:[string2 length] == 0 ? string1 : [string1 length] == 0 ? string2 : [NSString stringWithFormat:@"%@ %@", string1, string2]]; + if ([string1 length] > 0 || [string2 length] > 0) + [newAnnotation setString:[string2 length] == 0 ? string1 : [string1 length] == 0 ? string2 : [NSString stringWithFormat:@"%@ %@", string1, string2]]; [newAnnotation setBorder:[currentAnnotation border]]; } if (newAnnotation) { 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