Revision: 16395
http://sourceforge.net/p/skim-app/code/16395
Author: hofman
Date: 2026-07-23 22:42:58 +0000 (Thu, 23 Jul 2026)
Log Message:
-----------
check for non-empty selection rather than nil
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-07-23 22:12:41 UTC (rev 16394)
+++ trunk/SKMainWindowController.m 2026-07-23 22:42:58 UTC (rev 16395)
@@ -1806,7 +1806,7 @@
PDFSelection *selection = [pdfDoc findString:string fromSelection:sel
withOptions:options];
if ([selection hasCharacters] == NO && [sel hasCharacters])
selection = [pdfDoc findString:string fromSelection:nil
withOptions:options];
- if (selection) {
+ if ([selection hasCharacters]) {
PDFPage *page = [selection safeFirstPage];
NSRect rect = [selection boundsForPage:page];
rect = NSIntersectionRect(NSInsetRect(rect, -FIND_RESULT_MARGIN,
-FIND_RESULT_MARGIN), [page boundsForBox:kPDFDisplayBoxCropBox]);
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