Community
Participate
Working Groups
Created attachment 140914 [details] proposed patch To fix: 1) Line styles for AWT diagram image should be look the same as on SWT Image 2) SWT Image should have anti-alias on. Create a geoshape diagram with a line between two shapes. Change the line style to dotted line. Export diagram to SWT Image - BMP, GIF, JPG Export diagram to AWT Image - JPEG, PNG, SVG, PDF The line on all image shows up different from the original line on the diagram. Marc, can you please code review this fix for me?
Created attachment 141037 [details] proposed patch Corrected the patch
Looks good to me, fixes the problem, renders the dashes, checked with a couple of different line widths. Just out of curiosity, what's the reason behind swapping ScaledGraphics for RenderedScaledGraphics in DiagramImageGenerator?
A reminder that since this depends on a GEF change, we need to get GMF to adopt a new GEF maintenance build first. so do not commit this just yet.....
:-( Anthony, I forgot about that... I'll undo the commit. RenderedScaledGraphics is for keeping the quality of SVG images. This is more of a bug 234708 fix. It shouldn't breaj anything though.
(In reply to comment #3) > A reminder that since this depends on a GEF change, we need to get GMF to adopt > a new GEF maintenance build first. > > so do not commit this just yet..... > We have created GEF 3.5.1 build M200907241422 and GEF 3.6.0 build I200907241517. When we commit the fix, we need to update the manifest to require these versions of GEF.
Committed the fix for 2.2.1 and 2.3
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug