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

Bug 315028

Summary: Labels being Clipped when Exporting Diagram to Image (SVG/PDF)
Product: [Modeling] GMF-Runtime Reporter: Jevon <jevon>
Component: GeneralAssignee: Inbox <gmf.runtime.diagram-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: aboyko, ahunter.eclipse
Version: 2.2   
Target Milestone: 2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
example export of a SVG, opened in Inkscape none

Description Jevon CLA 2010-05-31 02:31:26 EDT
Build Identifier: M20100211-1343

I am having an issue that when I am exporting a GMF diagram to PDF or SVG, the labels are occasionally clipped (as per the attached diagram). The text is still present in the exported diagram, just that the right-hand side is cut off. I can edit the diagram with Inkscape and obtain the text, but I'd rather not have to modify all exported SVG diagrams manually. Is there a known workaround? 

Also, probably unrelated, but shortcut decorators are also being cut off at the bottom of the image.

Reproducible: Sometimes

Steps to Reproduce:
1. Create a GMF diagram with labels
2. Export the image as PDF or SVG
3. Open exported image

It seems to happen to about 10-20% of my labels. Should I also provide the .xxx_diagram as an attachment?
Comment 1 Jevon CLA 2010-05-31 02:32:27 EDT
Created attachment 170489 [details]
example export of a SVG, opened in Inkscape
Comment 2 Alex Boyko CLA 2010-05-31 13:24:55 EDT
Try latest GMF from HEAD. It should be fixed there (GMF 2.3)
Comment 3 Anthony Hunter CLA 2010-07-09 10:49:04 EDT
(In reply to comment #2)
> Try latest GMF from HEAD. It should be fixed there (GMF 2.3)

Resolved in GMF Runtime 1.4.0 (GMF 2.3.0 in Helios), please reopen if not the case.
Comment 4 Eclipse Webmaster CLA 2010-07-16 23:38:11 EDT
[target cleanup] 2.3 RC was the original target milestone for this
bug
Comment 5 Eclipse Webmaster CLA 2010-07-19 21:59:53 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime was the original product and component for this bug