Description: If you export a Highcharts chart to SVG and import it (as an image) in Libreoffice Calc, the chart does not show correctly. The same exported file DOES appear correctly if opened with Chrome or Safari. The behavior has been verified in Linux and Mac OS X. Steps to Reproduce: 1.Go to https://www.highcharts.com/demo/bubble 2.Click on the hamburger icon at the top right of the chart 3.Click on DOWNLOAD SVG VECTOR IMAGE 4.Save the file 5.Create a new spreadsheet with Calc 6.Insert the image Actual Results: The image won't show correctly; the bubbles themselves will not be shown. I have tested this in Linux and Mac OS X with the same results. Expected Results: The image should show correctly. Reproducible: Always User Profile Reset: No OpenGL enabled: Yes Additional Info: If you open the same SVG file with Chrome or Safari, it works correctly. The current version of LibreOffice is: Version: 6.2.0.3 Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62 CPU threads: 4; OS: Mac OS X 10.14.1; UI render: default; VCL: osx; Locale: en-US (en_UY.UTF-8); UI-Language: en-US Calc: threaded
Created attachment 149796 [details] SVG file as produced by Highcharts at https://www.highcharts.com/demo/bubble To reproduce this file, go to https://www.highcharts.com/demo/bubble, click on the hamburger icon at the top right of the chart, and select the option to download as SVG.
Created attachment 149797 [details] Screenshot showing the SVG file as rendered by Chrome If you open the SVG in Chrome, it is shown perfectly. The same happens with Safari and Firefox.
Created attachment 149798 [details] Screenshot showing the SVG file rendered incorrectly by CALC
Created attachment 149799 [details] Screenshot showing the SVG file rendered incorrectly by IMPRESS too The SVG image is also displayed wrongly in IMPRESS.
Created attachment 149800 [details] Screenshot showing the SVG file rendered incorrectly by WRITER too The wrong behavior is common to WRITER too.
Repro with Version: 6.3.0.0.alpha0+ Build ID: aa51774e6a309f277e71ca3a3b9d5d5b4b3dbf1a CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; TinderBox: Win-x86@42, Branch:master, Time: 2019-02-18_06:06:03 Locale: nl-NL (nl_NL); UI-Language: en-US Calc: CL but not with 4.4.7.2
General fidelity of text spans look good, but seems to be an issue with svgio handling the clip-path stanzas for the bubbles. @Telesto -- not a regression, as 4.4 was on the old SVG import filter which was fully killed off for the svgio implementation [1]. Dropping the bibisect and regression keywords. =-ref-= [1] https://gerrit.libreoffice.org/#/c/54096/
Please, do note that there's some problem with the subtitle ("SOURCE EUROMONITOR AND OECD") too.
Regression introduced by: author Xisco Fauli <anistenis@gmail.com> 2016-03-28 19:24:29 +0200 committer Xisco Faulí <anistenis@gmail.com> 2016-03-29 08:00:47 +0000 commit 3041df16f8315859ddf22075eac8f9ad4fa37b8e (patch) tree f221fa0aea0f3abcf9e67b0b4e7e7fe0158321de parent d5e4fe23b2af09a2989a0b1c37b13bb4b2ea8787 (diff) SVGIO: Don't inherit style attributes from parent if the... ... shapes define their own attributes. Bisected with: bibisect-linux-64-5.2 Adding Cc: to Xisco Fauli Maybe I can take a look at it at some point...
(In reply to V Stuart Foote from comment #7) > @Telesto -- not a regression, as 4.4 was on the old SVG import filter which > was fully killed off for the svgio implementation [1]. Dropping the bibisect > and regression keywords. svgio can be used in old version with Insert - Image
Created attachment 150197 [details] minimal SVG file to reproduce the issue
the problem is not with the clippath it seems, but with the fill="none". Changing it to fill="black" fixes the issue...
I know how to fix this one...
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/586de7ac433dca98edf4a5a3d13b5e393b9880ed tdf#123926: SVGIO: Check parent's fill when... It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-6-3": https://git.libreoffice.org/core/commit/5b4b6d08d1a839a595f42a56ecff5d4964fcf90c tdf#123926: SVGIO: Check parent's fill when... It will be available in 6.3.4. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.