Bug 87309

Summary: In svg import attribute value currentColor is not resolved, if color attribute is missing
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: DrawingAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: joni.mustonen, vstuart.foote
Version: unspecified   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 88277, 88278    

Description Regina Henschel 2014-12-14 21:05:59 UTC
Open the attachment https://bugs.freedesktop.org/attachment.cgi?id=110836 from issue 62284.
LibreOffice acts very slow and at the end, the image is empty.

Reason: The fill value currentColor is not resolved, because there exists no color attribute in the file. And in contrast to a browser environment there exist no default value from the target document or from a default css.

For a workaround write the attribute color="black" (or any other color you like)  into the outermost svg element of the file.

In case of this special file, setting black as default color in the branch "currentColor" in /core/svgio/source/svgreader/svgtools.cxx would help. But I think it should not be solved there. I suggest to set a default value for the color attribute at the outermost svg element, but that should be discussed.
Comment 1 V Stuart Foote 2014-12-16 08:39:45 UTC
Valid issue, setting new.
Comment 2 Joni_M 2015-01-10 08:22:05 UTC
You can also change black to near black like #020000.
I hope this will be corrected to LibreOffice source code, since I have couple hundred SVG pictures.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.