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

Bug 327922

Summary: Graphics2DToGraphicsAdaptor incorrectly works with line attributes
Product: [Modeling] GMF-Runtime Reporter: Alex Boyko <aboyko>
Component: GeneralAssignee: Alex Boyko <aboyko>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, lgrahek
Version: 2.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Alex Boyko CLA 2010-10-15 13:11:52 EDT
Created attachment 180991 [details]
patch

configureRenderingHints() method sets line attributes on the GC instead of SWT Graphics. The painting occurs via graphics object and not GC directly. The graphics object has default line attribute parameters. On a paint call line attributes sitting on the graphics object in the states are applied to GC and therefore, wipe out line attributes set on the GC in configureRenderingHints() and set the default line attributes from the graphics.
The result of this is that simple SVG's containing lines, rectangles etc where line width > 1, appear with line width == 1 when displayed on a diagram.

Lidija, can you please review this patch?