https://bugs.documentfoundation.org/show_bug.cgi?id=160373
Bug ID: 160373
Summary: Broken SVG import to impress
Product: LibreOffice
Version: 7.6.4.1 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Impress
Assignee: [email protected]
Reporter: [email protected]
Description:
Importing svg images/plots exported from R using ggsave/svglite is broken. Most
of the components of the plots are not shown. Opening the same plot in Inkscape
everything is displayed correctly so it is a valid svg file.
A fix I have found is to run the bellow on the SVG, then everything is
displayed correctly.
sed 's/^.g\s[^<]*//g;s/<\/g>$//g' my_svg_file.svg > my_fixed_svg_file.svg
which will for example change the bellow:
<g clip-path='url(#cpMTA1LjA2fDM5OC42OXwxMDguMzh8Mzk0Ljg3)'>
<rect x='105.06' y='108.38' width='293.62' height='286.50' style='stroke-width:
1.36; stroke: #FFFFFF; fill: #FFFFFF;' />
</g>
to:
<rect x='105.06' y='108.38' width='293.62' height='286.50' style='stroke-width:
1.36; stroke: #FFFFFF; fill: #FFFFFF;' />
The above, after the fix will display correctly in Impress. Why can't Impress
display the plot correctly when there is the <g> tag?
Steps to Reproduce:
Import an svg with using the g tag
Actual Results:
Most graphics will not display
Expected Results:
Everything from the svg should display like they do in Inkscape
Reproducible: Always
User Profile Reset: No
Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: PresentationDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
--
You are receiving this mail because:
You are the assignee for the bug.