| Summary: | [painting] White space wrongly rendered after horizontal scrolling | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> | ||||
| Component: | Text | Assignee: | Deepak Azad <deepakazad> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert | ||||
| Version: | 3.7 | Flags: | markus.kell.r:
review+
|
||||
| Target Milestone: | 3.7 M3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Markus Keller
With the same options, I also see spaces painted when I have a sequence of multiple "enclosed" spaces (e.g. "int foo= 1;" and then select one or more of these spaces. Single spaces are OK. Created attachment 180383 [details]
fix
As correctly pointed out by Markus, the problem was that the whole line is not always painted, and as a result the computation of textBegin and textEnd was wrong.
Markus, please commit the patch if it looks good to you. Thanks, looks good and works fine, committed to HEAD. The fix adds a second call to StyledTextContent#getTextRange(int, int) that copies the char[] twice (if I remember correctly...). This can be improved with bug 326419. |