Bug 123351 - SVG Rendering: incorrect line width displayed when < 1 in file
Summary: SVG Rendering: incorrect line width displayed when < 1 in file
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 critical
Target Milestone: ---   Edit
Assignee: Steven R. Shaw CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2006-01-10 18:29 EST by Steven R. Shaw CLA
Modified: 2010-07-19 12:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven R. Shaw CLA 2006-01-10 18:29:59 EST
SVG files that have a stroke defined with a line width that is < 1 (i.e. 0.1), will get improperly transformed since the SWT precision is only Integer.  Hence if a transformation takes place, it will transform the line width at integer precision which potentially makes it much larger.
Comment 1 Steven R. Shaw CLA 2006-01-10 18:37:40 EST
Fixed problem by throwing UnsupportedOperationException if line width is < 1 which will default the rendering to rendering to a Graphics2d and converting to SWTImage after.

Also fixed a dispose issue with the Graphics2DToGraphicsAdaptor class which was causing a NPE.
Comment 2 Eclipse Webmaster CLA 2010-07-19 12:28:01 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug