Revision: 16357
http://sourceforge.net/p/skim-app/code/16357
Author: hofman
Date: 2026-06-04 15:31:59 +0000 (Thu, 04 Jun 2026)
Log Message:
-----------
don't set string when no selected text
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-06-04 15:30:45 UTC (rev 16356)
+++ trunk/SKPDFView.m 2026-06-04 15:31:59 UTC (rev 16357)
@@ -2426,7 +2426,8 @@
for (PDFPage *aPage in [selection pages]) {
PDFAnnotation *newAnnotation = [PDFAnnotation
newSkimNoteWithSelection:selection forPage:aPage forType:type];
if (newAnnotation) {
- [newAnnotation setString:text];
+ if (text)
+ [newAnnotation setString:text];
if (color)
[newAnnotation setColor:color];
[newAnnotations addObject:@[newAnnotation, aPage]];
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