Revision: 16331
          http://sourceforge.net/p/skim-app/code/16331
Author:   hofman
Date:     2026-05-31 22:10:38 +0000 (Sun, 31 May 2026)
Log Message:
-----------
can calculate exactly for square

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2026-05-31 21:33:58 UTC (rev 16330)
+++ trunk/SKPDFView.m   2026-05-31 22:10:38 UTC (rev 16331)
@@ -2509,9 +2509,11 @@
             if (h < w) {
                 dw = primaryOutset(h / w);
                 dh = secondaryOutset(dw);
-            } else {
+            } else if (w < h) {
                 dh = primaryOutset(w / h);
                 dw = secondaryOutset(dh);
+            } else {
+                dw = dh = M_SQRT2 - 1.0;
             }
             CGFloat lw = [[NSUserDefaults standardUserDefaults] 
doubleForKey:SKCircleNoteLineWidthKey];
             bounds = NSInsetRect(bounds, -0.5 * w * dw - lw, -0.5 * h * dh - 
lw);

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