Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337789

Summary: StyledText selection highlighting is incorrect.
Product: [Eclipse Project] Platform Reporter: Doug M <eclipse>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 4.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Image of the problem, TIFF file. none

Description Doug M CLA 2011-02-22 01:10:32 EST
Build Identifier: swt-3.7M5-cocoa-macosx-x86_64

When second line of wrapped paragraph is shorter than top line, selection highlighting right edge follows end of second line for following lines.

It should highlight the whole of each line.

Reproducible: Always

Steps to Reproduce:
1. Run Snippet163
2. Shrink window width until text wraps between "an" and "indentation".
3. Select from start and drag downward.
4. Observe that lines 3 to 6 are incorrectly highlighted (right end fails to highlight).
Comment 1 Doug M CLA 2011-02-22 02:53:56 EST
Created attachment 189460 [details]
Image of the problem, TIFF file.
Comment 2 Silenio Quarti CLA 2012-06-27 17:22:14 EDT
This works for me in latest 4.2 build.