Revision: 14785
          http://sourceforge.net/p/skim-app/code/14785
Author:   hofman
Date:     2024-12-08 15:03:32 +0000 (Sun, 08 Dec 2024)
Log Message:
-----------
Ignore old rect from changed line width when itstays within the bounds

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2024-12-08 14:55:50 UTC (rev 14784)
+++ trunk/SKMainWindowController.m      2024-12-08 15:03:32 UTC (rev 14785)
@@ -2690,8 +2690,11 @@
                 if ([keyPath isEqualToString:SKNPDFAnnotationBoundsKey] && 
[oldValue isEqual:[NSNull null]] == NO) {
                     oldRect = [note displayRectForBounds:[oldValue rectValue] 
lineWidth:[note lineWidth]];
                 } else if ([keyPath isEqualToString:SKNPDFAnnotationBorderKey] 
&& [oldValue isEqual:[NSNull null]] == NO) {
-                    if ([oldValue lineWidth] > [note lineWidth])
+                    if ([oldValue lineWidth] > [note lineWidth]) {
                         oldRect = [note displayRectForBounds:[note bounds] 
lineWidth:[oldValue lineWidth]];
+                        if (NSContainsRect([note bounds], oldRect))
+                            oldRect = NSZeroRect;
+                    }
                 }
                 
                 [self updateThumbnailAtPageIndex:[note pageIndex]];

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