Revision: 15585
          http://sourceforge.net/p/skim-app/code/15585
Author:   hofman
Date:     2025-07-02 14:21:22 +0000 (Wed, 02 Jul 2025)
Log Message:
-----------
Include reisterUserName in addAnnotation:toPage:select:

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-07-02 14:13:45 UTC (rev 15584)
+++ trunk/SKPDFView.m   2025-07-02 14:21:22 UTC (rev 15585)
@@ -1239,7 +1239,6 @@
         PDFAnnotation *newAnnotation = [newAnnotations firstObject];
         page = [self currentPage];
         [newAnnotation setBounds:SKConstrainRect([newAnnotation bounds], [page 
boundsForBox:[self displayBox]])];
-        [newAnnotation registerUserName];
         [self addAnnotation:newAnnotation toPage:page select:YES];
         
     } else if ([newAnnotations count] > 0) {
@@ -1326,7 +1325,6 @@
                 [newAnnotation setString:str];
             }
             
-            [newAnnotation registerUserName];
             [self addAnnotation:newAnnotation toPage:page select:YES];
             
         } else if (isPlainText == NO) {
@@ -1365,7 +1363,6 @@
                 if ([text length] > 0)
                     [newAnnotation setString:text];
                 
-                [newAnnotation registerUserName];
                 [self addAnnotation:newAnnotation toPage:page select:YES];
                 
             } else {
@@ -2307,7 +2304,6 @@
                 [(SKNPDFAnnotationNote *)newAnnotation setImage:image];
                 [(SKNPDFAnnotationNote *)newAnnotation 
setExtendedIconType:kSKNPDFTextAnnotationIconImage];
                 
-                [newAnnotation registerUserName];
                 [self addAnnotation:newAnnotation toPage:page select:YES];
                 
                 performedDrag = YES;
@@ -2384,6 +2380,7 @@
 #pragma mark Annotation management
 
 - (void)addAnnotation:(PDFAnnotation *)annotation toPage:(PDFPage *)page 
select:(BOOL)shouldSelect {
+    [annotation registerUserName];
     [self commitEditing];
     [self beginNewUndoGroupIfNeeded];
     [[self document] addAnnotation:annotation toPage:page];
@@ -2485,7 +2482,6 @@
         }
         if ([newAnnotation string] == nil)
             [newAnnotation setString:@""];
-        [newAnnotation registerUserName];
         [self addAnnotation:newAnnotation toPage:page select:YES];
         
         return YES;
@@ -4178,7 +4174,6 @@
             [NSApp willDragMouse]) {
             // select a new copy of the annotation
             PDFAnnotation *newAnnotation = [PDFAnnotation 
newSkimNoteWithProperties:[newCurrentAnnotation SkimNoteProperties]];
-            [newAnnotation registerUserName];
             [self addAnnotation:newAnnotation toPage:page select:NO];
             newCurrentAnnotation = newAnnotation;
         } else if (([newCurrentAnnotation isMarkup] ||
@@ -4375,7 +4370,6 @@
             [annotation setBorder:[currentAnnotation border]];
             [annotation setString:[currentAnnotation string]];
         }
-        [annotation registerUserName];
         [self addAnnotation:annotation toPage:page select:NO];
 
         if (currentAnnotation) {

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