Revision: 16337
          http://sourceforge.net/p/skim-app/code/16337
Author:   hofman
Date:     2026-06-01 16:09:27 +0000 (Mon, 01 Jun 2026)
Log Message:
-----------
edit text and anchored notes only when not addingg from selection

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2026-06-01 14:52:36 UTC (rev 16336)
+++ trunk/SKPDFView.m   2026-06-01 16:09:27 UTC (rev 16337)
@@ -2621,12 +2621,14 @@
         
        }
     
-    if (page != nil && [self addAnnotationWithType:annotationType 
selection:selection page:page bounds:bounds]) {
+    if (page == nil || NO == [self addAnnotationWithType:annotationType 
selection:selection page:page bounds:bounds]) {
+        NSBeep();
+    } else if (noSelection) {
         if (annotationType == SKNoteTypeAnchored || annotationType == 
SKNoteTypeFreeText)
             [self editCurrentAnnotation:self];
         else if (isMarkup && noSelection)
             [self setCurrentSelection:nil];
-    } else NSBeep();
+    }
 }
 
 - (void)addAnnotationWithType:(SKNoteType)annotationType {

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