Created attachment 191120 [details] SVG file The attached SVG file is not correctly imported in any of LO applications (Writer, Draw, Impress). It contains an equation rendered as SVG by ziamath (used to convert MathML and Latex to SVG). In Firefox, MS Edge and Inkscape the SVG file opens fine. System info: Version: 7.6.3.2 (X86_64) / LibreOffice Community Build ID: 60(Build:2) CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+wayland) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Ubuntu package version: 4:7.6.3~rc2-0ubuntu0.23.10.1~lo2 Calc: threaded Also present in Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 8369765ec5be151082a6e31c16e2ab2b0df13f5c CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+wayland) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Calc: CL threaded
Created attachment 191121 [details] SVG file in Inkscape vs LO Draw In this screenshot I opened the SVG file in Inkscape (top) and LO Draw (bottom).
Also reproduced in Version: 7.3.0.0.alpha1+ / LibreOffice Community Build ID: 229123ccc6f90ebf66b3e659bebbd53f8a9bdd3a CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: es-ES (es_ES.UTF-8); UI: en-US Calc: threaded
and in Version: 6.0.0.0.alpha1+ Build ID: 6eeac3539ea4cac32d126c5e24141f262eb5a4d9 CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: x11; Locale: es-ES (es_ES.UTF-8); Calc: group threaded
Created attachment 191122 [details] minimized reproducer
(In reply to Xisco Faulí from comment #4) > Created attachment 191122 [details] > minimized reproducer sorry, my bad. wrong file
The content of attachment 191122 [details] has been deleted for the following reason: wrong file
Created attachment 191123 [details] minimized reproducer
LoL, the symbol node reads the viewbox but does nothing with it-> https://opengrok.libreoffice.org/xref/core/svgio/source/svgreader/svgsymbolnode.cxx?r=48ff87e1#57
In my case, Inkscape 1.2.2 displays the document the same way a LibreOffice. @Rafael, could you please tell which version of Inkscape are you using ?
(In reply to Xisco Faulí from comment #9) > In my case, Inkscape 1.2.2 displays the document the same way a LibreOffice. > @Rafael, could you please tell which version of Inkscape are you using ? in Inkscape it's displayed correctly.
(In reply to Xisco Faulí from comment #10) > (In reply to Xisco Faulí from comment #9) > > In my case, Inkscape 1.2.2 displays the document the same way a LibreOffice. > > @Rafael, could you please tell which version of Inkscape are you using ? > > in Inkscape it's displayed correctly. Inkscape 1.3.2 I mean
my theory is that svg 2 instroduced something which is LibreOffice isn't supporting at the moment
(In reply to Xisco Faulí from comment #12) > my theory is that svg 2 instroduced something which is LibreOffice isn't > supporting at the moment no, I was wrong, if the path is outside the symbol element, then it's rendered correctly. So the path inside symbol is the problem
(In reply to Xisco Faulí from comment #9) > In my case, Inkscape 1.2.2 displays the document the same way a LibreOffice. > @Rafael, could you please tell which version of Inkscape are you using ? I'm on Inkscape 1.3.2... i had not tested with 1.2.2
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e7186b49a9a0b24ddc3b1c5384b5d9facb03518c tdf#158445: support viewBox in symbol elements It will be available in 24.8.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.
@Xsico, thanks for the fix. I can verify that the SVG file is now correctly imported. Verified with Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 3be785e088cc0aa726509cf6b52b1d3b03817172 CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Calc: CL threaded
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/38dd3c75d40bd5ebbc63b192e38d581bed9b9092 tdf#158445: support viewBox in symbol elements It will be available in 24.2.1. 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-7-6": https://git.libreoffice.org/core/commit/f0c090973572ba87206361a3d88055b7e0961ff1 tdf#158445: support viewBox in symbol elements It will be available in 7.6.5. 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.
Created attachment 192867 [details] tdf#158445 Arrow.svg There are still some problems with displaying SVG content. The arrow from the attached SVG file is rendered as a square overlying the end of the line. Version: 24.2.1.2 (X86_64) / LibreOffice Community Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win Locale: pl-PL (pl_PL); UI: en-US Calc: threaded
Created attachment 192868 [details] tdf#158445 Arrow.svg - Inkscape.png
Created attachment 192869 [details] tdf#158445 SVG arrow LO24.2.1.2.odt
Created attachment 192870 [details] tdf#158445 SVG Arrow in LO24.2.1.2.png
Created attachment 192871 [details] tdf#158445 SVG arrow MSO Word 365 2401.docx
Created attachment 192872 [details] tdf#158445 SVG arrow MSO Word 365 2401.png
Hi Piotr Osada, please create a new report for the arrow issue
(In reply to Xisco Faulí from comment #25) > Hi Piotr Osada, > please create a new report for the arrow issue All right. Reported in: Bug 159968.