Community
Participate
Working Groups
Build Identifier: I20100608-0911 Using SWT cocoa, a TextLayout with wrapped text where the first line is smaller than the others, the selection is drawn as a box with the width of the first line. This causes text on the other lines to leak out of the selection background box. The attached screen shot shows the result of the attached java code with the selection bug. Reproducible: Always Steps to Reproduce: Run the attached Test.java under mac os x with cocoa window system.
Created attachment 191638 [details] Java example code.
Created attachment 191639 [details] screen shot of the results produced by the example code.
Created attachment 191644 [details] proposed patch to fix the problem This patch proposes a solution that uses the widest line as the width of the selection rectangle.
Fixed in HEAD