[Libreoffice-bugs] [Bug 94765] FILEOPEN: SVG: URL in style isn't supported

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Sep 18 17:25:43 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=94765

--- Comment #17 from Xisco FaulĂ­ <xiscofauli at libreoffice.org> ---
I found the reason why it's failing.
The svg files are read from top to bottom, so if we have something like

<style type="text/css">
    .st1{fill:url(#SVGID_1_);stroke:#000000;stroke-miterlimit:10;}
</style>

on top of the document, pNode in
https://opengrok.libreoffice.org/xref/core/svgio/source/svgreader/svgstyleattributes.cxx?r=ec3a14ba#1339
is null because the element #SVGID_1 is not in the mapper yet.
Moving the style block to the bottom would fix the issue...

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190918/5c214fb0/attachment.html>


More information about the Libreoffice-bugs mailing list