https://bugs.freedesktop.org/show_bug.cgi?id=78232
Priority: medium
Bug ID: 78232
Assignee: [email protected]
Summary: Embedding PyGal SVG gives black box, but inkscape has
no trouble
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: UNCONFIRMED
Version: 4.2.4.1 rc
Component: Libreoffice
Product: LibreOffice
Created attachment 98387
--> https://bugs.freedesktop.org/attachment.cgi?id=98387&action=edit
PyGal generated chart
I'm generating charts using the PyGal library which can be found here:
http://pygal.org/
I like the ability to build scalable images that can work in both LibreOffice
and the web. Unfortunately, LibreOffice is failing to display the charts I
generate.
When I insert a PyGal generated SVG image (in either calc or write), I get just
a black box. If I instead open the SVG in inkscape, the chart looks fine.
>From inkscape I can then save the image as "Plain SVG" in a second file, and
then LibreOffice can handle the output of that.
I'm attaching 3 files:
- A PyGal generated SVG
- The Inkscape converted version of the SVG
- A screenshot of what both versions of the SVG look like in calc file
I have compared the SVG source of the two files a bit to see what is different.
The PyGal one has some JavaScript, but stripping this out has no effect on the
display in either program. One big difference is that the PyGal SVG seems to
define most styles in a <style> tag and then applies those via classes to the
XML file's elements. The Inkscape "Plain SVG" version seems to have copied all
of those style specifications down to each element individually. So perhaps
there are bugs in LibreOffice's interpretation of styles.
Note that I have tested for this issue in several recent versions of
LibreOffice. It exists in all.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs