Revision: 16338
          http://sourceforge.net/p/skim-app/code/16338
Author:   hofman
Date:     2026-06-01 16:11:52 +0000 (Mon, 01 Jun 2026)
Log Message:
-----------
no need to check twice

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

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

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