Revision: 16550
http://sourceforge.net/p/skim-app/code/16550
Author: hofman
Date: 2026-09-27 15:36:35 +0000 (Sun, 27 Sep 2026)
Log Message:
-----------
ignore degenerate line rects for highlight notes
Modified Paths:
--------------
trunk/PDFAnnotation_SKExtensions.m
Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m 2026-09-27 14:48:49 UTC (rev 16549)
+++ trunk/PDFAnnotation_SKExtensions.m 2026-09-27 15:36:35 UTC (rev 16550)
@@ -250,7 +250,7 @@
if ([selection safeIndexOfFirstCharacterOnPage:page] != NSNotFound) {
for (PDFSelection *sel in [selection connectedSelectionsOnPage:page]) {
NSRect lineRect = [sel boundsForPage:page];
- if (NSIsEmptyRect(lineRect) == NO && [[sel string]
rangeOfCharacterFromSet:[NSCharacterSet
nonWhitespaceAndNewlineCharacterSet]].length) {
+ if (NSIsEmptyRect(lineRect) == NO && isfinite(NSMinX(lineRect)) &&
isfinite(NSMinY(lineRect)) && [[sel string]
rangeOfCharacterFromSet:[NSCharacterSet
nonWhitespaceAndNewlineCharacterSet]].length) {
if (lines == nil)
lines = [[NSPointerArray alloc] initForRectPointers];
[lines addPointer:&lineRect];
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