Bug 87309 - In svg import attribute value currentColor is not resolved, if color attribute is missing
Summary: In svg import attribute value currentColor is not resolved, if color attribut...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Drawing (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 88277 88278
  Show dependency treegraph
 
Reported: 2014-12-14 21:05 UTC by Regina Henschel
Modified: 2015-01-10 22:47 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.