| Summary: | GraphicsSVG ignores scaling of SVG images | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] GMF-Runtime | Reporter: | Alex Boyko <aboyko> | ||||
| Component: | General | Assignee: | Alex Boyko <aboyko> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ahunter.eclipse, ansgar.radermacher, pierre-charles.david | ||||
| Version: | 2.3 | ||||||
| Target Milestone: | 1.11.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 465575 | ||||||
| Attachments: |
|
||||||
|
Description
Alex Boyko
SVG images are wrongly scaled during export. This can also be reproduced in 465575. Analysis: GMF uses a graphics wrapper which could either be RenderedScaledGraphics or (Rendered)MapModeGraphics. These wrappers delegate to GraphicsSWT, GraphicsSVG depending on whether you are exporting or inside the editor. The problem is that the class RenderHelper makes an instanceof DrawableRenderedImage test to differentiate whether it deals with the graphics wrapper from GMF or the device specific graphics. However, unlike GraphicsSWT, GraphicsSVG also implements this interface and thus wrongly delegates directly to it without applying scaling first. I´ll add a patch that fixes the problem Created attachment 266739 [details]
Patch that corrects the issue
Patch applied as 4d9ab970b2ae92907570628393aa0738b470706b. |