| Summary: | Recycling Transform when drawing paths on GC leads to inconsistencies. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Alexander Nyßen <nyssen> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | RESOLVED INVALID | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | ||||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Alexander Nyßen
I am sorry, but I overlooked that the snippets still depend on Draw2d's ColorConstants.red. You may of course simply remove this by declaring another local color constant as follows: private static final Color red = new Color(null, 255, 0, 0); Forget about this one. In case the transform is not recycled, it should of course be: transform.translate(0, 100); instead of transform.translate(0, i*100); |