Revision: 14379
          http://sourceforge.net/p/skim-app/code/14379
Author:   hofman
Date:     2024-07-15 09:32:59 +0000 (Mon, 15 Jul 2024)
Log Message:
-----------
Reset circle or square string when auto sizing. Don't set string of joined 
markup notes when not setting string when creating.

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-07-15 09:25:36 UTC (rev 14378)
+++ trunk/SKPDFView.m   2024-07-15 09:32:59 UTC (rev 14379)
@@ -3945,6 +3945,8 @@
             return;
         }
         [currentAnnotation setBounds:bounds];
+        if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKDisableUpdateContentsFromEnclosedTextKey] == NO)
+            [currentAnnotation setString:[[self currentSelection] 
cleanedString]];
         
     } else {
         NSBeep();
@@ -4387,7 +4389,8 @@
                 [sel addSelection:[newCurrentAnnotation selection]];
                 
                 newAnnotation = [PDFAnnotation newSkimNoteWithSelection:sel 
forType:type];
-                [newAnnotation setString:[sel cleanedString]];
+                if ([[NSUserDefaults standardUserDefaults] 
integerForKey:SKDisableUpdateContentsFromEnclosedTextKey] < 2)
+                    [newAnnotation setString:[sel cleanedString]];
             } else if ([currentAnnotation isInk]) {
                 NSMutableArray *paths = [[currentAnnotation pagePaths] 
mutableCopy];
                 [paths addObjectsFromArray:[newCurrentAnnotation pagePaths]];

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