Revision: 16341
          http://sourceforge.net/p/skim-app/code/16341
Author:   hofman
Date:     2026-06-01 16:51:27 +0000 (Mon, 01 Jun 2026)
Log Message:
-----------
re-check only when already nil

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

Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m  2026-06-01 16:48:24 UTC (rev 16340)
+++ trunk/PDFAnnotation_SKExtensions.m  2026-06-01 16:51:27 UTC (rev 16341)
@@ -145,10 +145,11 @@
 }
 
 + (PDFAnnotation *)newSkimNoteWithSelection:(PDFSelection *)selection 
forPage:(PDFPage *)page forType:(NSString *)type {
-    if (page == nil)
+    if (page == nil) {
         page = [selection safeFirstPage];
-    if (page == nil)
-        return nil;
+        if (page == nil)
+            return nil;
+    }
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
     return [[PDFAnnotationMarkup alloc] initSkimNoteWithSelection:selection 
forPage:page forType:type];

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