Revision: 16362
          http://sourceforge.net/p/skim-app/code/16362
Author:   hofman
Date:     2026-06-06 13:56:28 +0000 (Sat, 06 Jun 2026)
Log Message:
-----------
set border to copy of border as it is mutable

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2026-06-05 21:27:06 UTC (rev 16361)
+++ trunk/SKPDFView.m   2026-06-06 13:56:28 UTC (rev 16362)
@@ -2371,7 +2371,7 @@
         newAnnotation = [PDFAnnotation newSkimNoteWithPaths:paths];
         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]];
+        [newAnnotation setBorder:[[currentAnnotation border] copy]];
     } else {
         return nil;
     }
@@ -4327,7 +4327,7 @@
         if (currentAnnotation) {
             annotation = [PDFAnnotation 
newSkimNoteWithPaths:[[currentAnnotation pagePaths] 
arrayByAddingObject:bezierPath]];
             [annotation setColor:[currentAnnotation color]];
-            [annotation setBorder:[currentAnnotation border]];
+            [annotation setBorder:[[currentAnnotation border] copy]];
             [annotation setString:[currentAnnotation string]];
             [[self document] removeAnnotation:currentAnnotation];
         } else {

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