Revision: 16250
          http://sourceforge.net/p/skim-app/code/16250
Author:   hofman
Date:     2026-05-08 14:22:38 +0000 (Fri, 08 May 2026)
Log Message:
-----------
no need to get rect to scroll to in presentation

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-05-08 14:21:33 UTC (rev 16249)
+++ trunk/SKMainWindowController.m      2026-05-08 14:22:38 UTC (rev 16250)
@@ -1977,16 +1977,15 @@
         
         if ([currentSel hasCharacters]) {
             PDFPage *page = [currentSel safeFirstPage];
-            NSRect rect = NSZeroRect;
-            
-            for (PDFSelection *sel in findResults) {
-                if ([[sel pages] containsObject:page])
-                    rect = NSUnionRect(rect, [sel boundsForPage:page]);
-            }
-            rect = NSIntersectionRect(NSInsetRect(rect, -FIND_RESULT_MARGIN, 
-FIND_RESULT_MARGIN), [page boundsForBox:kPDFDisplayBoxCropBox]);
             if ([self interactionMode] == SKPresentationMode) {
                 [presentationView setPage:page];
             } else {
+                NSRect rect = NSZeroRect;
+                for (PDFSelection *sel in findResults) {
+                    if ([[sel pages] containsObject:page])
+                        rect = NSUnionRect(rect, [sel boundsForPage:page]);
+                }
+                rect = NSIntersectionRect(NSInsetRect(rect, 
-FIND_RESULT_MARGIN, -FIND_RESULT_MARGIN), [page 
boundsForBox:kPDFDisplayBoxCropBox]);
                 [pdfView goAndScrollToPage:page];
                 [pdfView goToRect:rect onPage:page];
             }

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