Revision: 16352
          http://sourceforge.net/p/skim-app/code/16352
Author:   hofman
Date:     2026-06-03 14:05:43 +0000 (Wed, 03 Jun 2026)
Log Message:
-----------
text and anchored notes are never added from a selection, so no need to check 
that separately

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2026-06-02 21:53:07 UTC (rev 16351)
+++ trunk/SKPDFView.m   2026-06-03 14:05:43 UTC (rev 16352)
@@ -2442,8 +2442,7 @@
 }
 
 - (void)addOtherAnnotationWithType:(SKNoteType)annotationType 
selection:(PDFSelection *)selection point:(NSPoint)point {
-    BOOL noSelection = selection == nil;
-    if (noSelection)
+    if (selection == nil)
         selection = [self currentSelection];
     
     PDFPage *page = [selection safeFirstPage];
@@ -2614,7 +2613,7 @@
     
     [self addAnnotation:newAnnotation toPage:page select:YES];
     
-    if (noSelection && (annotationType == SKNoteTypeAnchored || annotationType 
== SKNoteTypeFreeText))
+    if (annotationType == SKNoteTypeAnchored || annotationType == 
SKNoteTypeFreeText)
         [self editCurrentAnnotation:self];
 }
 

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