Bug 34264

Summary: FILESAVE SVG export
Product: LibreOffice Reporter: mathog <mathog>
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: courrier.oou.fr.mjk, LibreOffice, taken.spc, v_2e
Priority: medium    
Version: 3.3.0 release   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: source drawing which does not export well
exported SVG
See Comment 2

Description mathog 2011-02-14 09:58:47 UTC
Created attachment 43345 [details]
source drawing which does not export well

A drawing originally found in this bug report 

https://bugs.freedesktop.org/show_bug.cgi?id=34204

was found to not print to postscript or PDF reliably.  Here I report that it also
does not export to SVG correctly.  I have access to two SVG viewers and it looks
wrong, and different in both of them.  

In Inkscape (0.48) the draw order is incorrect (paper and "@" symbol) are behind part of the envelope, the gradient for the front flap (the piece of paper which goes from the lower left corner to around the middle and then back to the lower right corner) apparently is extended out into the rectangular boundary box for this object.  There is also a dark ellipse visible underneath the paper layer, which wasn't present in the original drawing.

In Firefox 3.6.13 the "@" is missing.  There is an unintended transparency such that the two side flaps and parts of the paper in the envelope are visible through the front flap.
Comment 1 mathog 2011-02-14 09:59:11 UTC
Created attachment 43346 [details]
exported SVG
Comment 2 Rainer Bielefeld Retired 2011-02-14 21:53:02 UTC
Effect is reproducible in Seamonkey with an export from "LibreOffice 3.3.1 RC1 - WIN7  Home Premium (64bit) German UI  [OOO330m19 (build 7 / tag 3.3.1.1)]"

I see the same problem with a similar EmailEnvelope.odg source, I believe I got that as a .svg and imported it using OOo3
Comment 3 Rainer Bielefeld Retired 2011-02-14 21:53:56 UTC
Created attachment 43362 [details]
See Comment 2
Comment 4 mathog 2011-02-15 08:48:02 UTC
See comment 9 in bug 34204.

https://bugs.freedesktop.org/show_bug.cgi?id=34204#c9

This suggests where the ellipse is coming from that is visible in Inkscape.  The original had an elliptical gradient for the back inside of the envelope, which is a rectangle.  On SVG export this is converted to a nested series of ellipses of different colors with a rectangular mask over it.  However the mask logic is not correct (in either LO export or Inkscape rendering) since the parts of the ellipse that extend beyond the rectangular mask are visible, and they should not be.