Created attachment 58351 [details]
test case of svg file importing
To reproduce this problem:
0. Start LibreOffice
1. File->Open, select file vochito.svg
Expected: color gradients in picture are correct
Actually: color gradients are grey
Reproduced in 3.3.4 and 3.5.0 on Fedora 64 bit
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit
A lots of problems with color gradients (headlights, engine cover, wheels, backlights etc.).
Reproducible with LibreOffice 4.2.5 and 4.3.0 on Debian x86_64.
On Windows 7 sp1, 64-bit en-US
Build ID: a3603970151a6ae2596acd62b70112f4d376b990
The SVG Insert -> Image filter renders this correctly.
The SVG fileOpen filter (Draw) does not.
Created attachment 120455 [details]
In the reduced document the radialGradient contains a xlink:href= to #linearGradient4134" which is a linearGradient.
The problem is that the linearGradient is defined in the document after the radialGradient in the document so it fails to find it at http://opengrok.libreoffice.org/xref/core/filter/source/svg/svgreader.cxx#222 as the linearGradient hasn't been parsed yet
*** Bug 95652 has been marked as a duplicate of this bug. ***
Change summary accordingly
Created attachment 120581 [details]
Migrating Whiteboard tags to Keywords: (filter:svgOpen)
Reproducible with LO 18.104.22.168, Win 8.1
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":
tdf#47262 SVG: Parse gradient styles twice if the referred...
It will be available in 5.2.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.