Revision: 16364
          http://sourceforge.net/p/skim-app/code/16364
Author:   hofman
Date:     2026-06-06 14:30:41 +0000 (Sat, 06 Jun 2026)
Log Message:
-----------
no need to get default size for note notes

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

Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m        2026-06-06 14:29:06 UTC (rev 16363)
+++ trunk/PDFPage_SKExtensions.m        2026-06-06 14:30:41 UTC (rev 16364)
@@ -749,9 +749,10 @@
             }
         } else if (type && [[NSSet setWithObjects:SKNFreeTextString, 
SKNNoteString, SKNCircleString, SKNSquareString, SKNLineString, nil] 
containsObject:type]) {
             NSRect bounds = NSZeroRect;
-            bounds.size = [[NSUserDefaults standardUserDefaults] 
sizeForWidthKey:SKDefaultNoteWidthKey heightKey:SKDefaultNoteHeightKey];
             if ([type isEqualToString:SKNNoteString])
                 bounds.size = SKNPDFAnnotationNoteSize;
+            else
+                bounds.size = [[NSUserDefaults standardUserDefaults] 
sizeForWidthKey:SKDefaultNoteWidthKey heightKey:SKDefaultNoteHeightKey];
             bounds = 
NSIntegralRect(SKRectFromCenterAndSize(SKIntegralPoint(SKCenterPoint([self 
boundsForBox:kPDFDisplayBoxCropBox])), bounds.size));
             
             annotation = [PDFAnnotation newSkimNoteWithBounds:bounds 
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