Revision: 12347
          http://sourceforge.net/p/skim-app/code/12347
Author:   hofman
Date:     2021-06-14 19:47:50 +0000 (Mon, 14 Jun 2021)
Log Message:
-----------
Don't set initial value of notes to selection when 
SKDisableContentsFromEnclosedText is 2

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2021-06-11 21:13:33 UTC (rev 12346)
+++ trunk/SKPDFView.m   2021-06-14 19:47:50 UTC (rev 12347)
@@ -2331,6 +2331,9 @@
     if (isInitial)
         bounds = annotationType == SKAnchoredNote ? 
SKRectFromCenterAndSize(bounds.origin, SKNPDFAnnotationNoteSize) : 
SKRectFromCenterAndSquareSize(bounds.origin, MIN_NOTE_SIZE);
     
+    if ([[NSUserDefaults standardUserDefaults] 
integerForKey:SKDisableUpdateContentsFromEnclosedTextKey] > 1)
+        text = nil;
+    
     // Create annotation and add to page.
     switch (annotationType) {
         case SKFreeTextNote:

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