Skip to content

Commit 0427abd

Browse files
DenisUngemachsratz
authored andcommitted
[mac] SWT: fix for #2621
From MacOS 26 - > MacOs 26.1 it seems the method: NSBezierPath.appendBezierPathWithRect(NSRect rect) can't handle huge integer values anymore. So a smaller number is defined and used. Doesn't matter for the purposes here.
1 parent 3d439b0 commit 0427abd

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public void draw(GC gc, int x, int y, int selectionStart, int selectionEnd, Colo
509509
NSRect bounds = lineBounds[lineBounds.length - 1];
510510
rect.x = pt.x + bounds.x + bounds.width;
511511
rect.y = y + bounds.y;
512-
rect.width = (flags & SWT.FULL_SELECTION) != 0 ? 0x7fffffff : (bounds.height + spacing) / 3;
512+
rect.width = (flags & SWT.FULL_SELECTION) != 0 ? OS.MAX_TEXT_CONTAINER_SIZE : (bounds.height + spacing) / 3;
513513
rect.height = Math.max(bounds.height + spacing, ascent + descent);
514514
path.appendBezierPathWithRect(rect);
515515
}

0 commit comments

Comments
 (0)