Issue 119296 - Problem in SVG Export: gradient appears instead of a shape
Summary: Problem in SVG Export: gradient appears instead of a shape
Status: CONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: save-export (show other issues)
Version: 3.4.0
Hardware: PC All
: P3 Normal with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2012-04-28 11:22 UTC by Andrea Pescetti
Modified: 2012-04-28 21:28 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Export to SVG from 3.3.0 and 3.4; export in 3.3.0 works much better. (71.72 KB, application/vnd.oasis.opendocument.graphics)
2012-04-28 11:22 UTC, Andrea Pescetti
no flags Details
Container with document, import svg and export svg (30.55 KB, application/zip)
2012-04-28 20:24 UTC, Regina Henschel
no flags Details
Container with document, import svg and export svg (29.55 KB, application/zip)
2012-04-28 21:28 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Andrea Pescetti 2012-04-28 11:22:44 UTC
Created attachment 77500 [details]
Export to SVG from 3.3.0 and 3.4; export in 3.3.0 works much better.

OpenOffice 3.4-RC does not export the attached ODG file to SVG properly. Regression with respect to version 3.3.0.

To reproduce:
1. Open the attached ODG file in OpenOffice 3.4-RC.
2. Export to SVG.
3. Open the exported SVG in Draw: a big gradient appears where the monument shape was showing.

If the export in steps 1-2 is done with OpenOffice 3.3.0, the SVG file can be imported in 3.4-RC and the problem does not appear.

It is an export problem because other programs, like Inkscape and Firefox, have the same behavior on import (i.e., they display the SVG exported by 3.4-RC with the error, while they display the SVG exported by 3.3.0 correctly).

[Reported by Massimiliano during Italian QA tests]
Comment 1 Armin Le Grand 2012-04-28 18:20:15 UTC
ALG: Adding myself to CC.
Comment 2 Regina Henschel 2012-04-28 20:19:16 UTC
The versions OOo3.3 and AOO3.4 are not really comparable with respect to svg graphics. OOo3.3 imports the svg-document as bitmap picture and therefore exports it as picture embedded in an svg document. AOO3.4 imports the svg-document as svg-graphic. Nevertheless the export has errors. I'll attach an reduced example.
Comment 3 Regina Henschel 2012-04-28 20:24:33 UTC
Created attachment 77501 [details]
Container with document, import svg and export svg

On export the Bezier path is correctly (besides changing from relative to absolute coordinates) exported as path, but the gradient filling is exported as rectangle image and not as linear gradient.

In my opinion there are two bugs:
(1) It is a linked svg-graphic, therefore the export should use the original svg information.
(2) The gradient must be a linear gradient linked as filling and not an image.
Comment 4 Regina Henschel 2012-04-28 21:28:11 UTC
Created attachment 77502 [details]
Container with document, import svg and export svg