Revision: 15411
          http://sourceforge.net/p/skim-app/code/15411
Author:   hofman
Date:     2025-06-08 14:42:15 +0000 (Sun, 08 Jun 2025)
Log Message:
-----------
combine setting string for new notes

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-06-08 14:35:09 UTC (rev 15410)
+++ trunk/SKPDFView.m   2025-06-08 14:42:15 UTC (rev 15411)
@@ -2471,13 +2471,15 @@
     } else if (newAnnotation) {
         [self beginNewUndoGroupIfNeededWithCommit:YES];
         
-        if (annotationType != SKNoteTypeLine && annotationType != 
SKNoteTypeInk && [text length] > 0)
-            [newAnnotation setString:text];
-        [newAnnotation registerUserName];
-        if ([text length] == 0 && isInitial == NO)
-            [newAnnotation autoUpdateStringWithPage:page];
+        if (annotationType != SKNoteTypeLine && annotationType != 
SKNoteTypeInk) {
+            if ([text length] > 0)
+                [newAnnotation setString:text];
+            else if (isInitial == NO)
+                [newAnnotation autoUpdateStringWithPage:page];
+        }
         if ([newAnnotation string] == nil)
             [newAnnotation setString:@""];
+        [newAnnotation registerUserName];
         [[self document] addAnnotation:newAnnotation toPage:page];
         [self setUndoActionName:NSLocalizedString(@"Add Note", @"Undo action 
name")];
 

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

Reply via email to