Revision: 16355
          http://sourceforge.net/p/skim-app/code/16355
Author:   hofman
Date:     2026-06-04 14:21:07 +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:00:34 UTC (rev 16354)
+++ trunk/SKPDFView.m   2026-06-04 14:21:07 UTC (rev 16355)
@@ -2605,8 +2605,6 @@
         else if (disableUpdateString == 0)
             [newAnnotation autoUpdateStringWithPage:page];
     }
-    if ([newAnnotation string] == nil)
-        [newAnnotation setString:@""];
     
     [self addAnnotation:newAnnotation toPage:page select:YES];
     
@@ -4008,7 +4006,6 @@
         originalBounds = 
SKRectFromCenterAndSquareSize(SKIntegralPoint(initialPoint), 0.0);
         if (noteType == SKNoteTypeAnchored) {
             PDFAnnotation *newAnnotation = [PDFAnnotation 
newSkimNoteWithBounds:SKRectFromCenterAndSize(initialPoint, 
SKNPDFAnnotationNoteSize) forType:SKNNoteString];
-            [newAnnotation setString:@""];
             [self addAnnotation:newAnnotation toPage:page select:YES];
             resizeHandle = SKRectEdgesNone;
             originalBounds = [[self currentAnnotation] bounds];
@@ -4050,7 +4047,6 @@
             if (draggedAnnotation == NO) {
                 if (currentAnnotation == nil) {
                     PDFAnnotation *newAnnotation = [PDFAnnotation 
newSkimNoteWithBounds:SKRectFromCenterAndSquareSize(initialPoint, 
MIN_NOTE_SIZE) forType:SKTypeForNoteType(noteType)];
-                    [newAnnotation setString:@""];
                     [self addAnnotation:newAnnotation toPage:page select:YES];
                 } else if (shouldAddAnnotation == NO) {
                     [self beginNewUndoGroupIfNeeded];

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

Reply via email to