Description: When importing a simple .svg into LO Writer, the text gets displaced. Here is a sample svg: https://drive.proton.me/urls/KF4QF61T6C#NmietVdjkQL7 I have fully reported this issue with pictures on the forum: https://ask.libreoffice.org/t/svg-elements-get-displaced-after-importing/126655 Steps to Reproduce: 1. Import an .svg file like this one https://drive.proton.me/urls/KF4QF61T6C#NmietVdjkQL7 2. See the text element gets immediately displaced 3. Actual Results: The .svg components get misplaced Expected Results: The .svg components retain their position Reproducible: Always User Profile Reset: No Additional Info: See the relevant thread on the forum: https://ask.libreoffice.org/t/svg-elements-get-displaced-after-importing/126655
Created attachment 202807 [details] svg sample
Uploaded attachment to Bugzilla.
Reproducible Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: b33cc5a7388c1739ff4a02a84751800f3e3086ce CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win Locale: es-ES (es_ES); UI: en-US Calc: CL threaded Seems similar to tdf#91614
also reproduced in Version: 6.4.0.0.alpha1+ Build ID: 9bc848cf0d301aa57eabcffa101a1cf87bad6470 CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3; Locale: es-ES (es_ES.UTF-8); UI-Language: en-US Calc: threaded
it seems the problem is with "direction:rtl"
it seems not to be implemented: https://opengrok.libreoffice.org/xref/core/svgio/source/svgreader/svgstyleattributes.cxx?r=76e8a1a2d719b23a9bfd5533e163a0a49328df0b#1841
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/4d9a323a83b4198289cf12cabfe1642ed0e9f0d8 tdf#168378: invert text anchor in RTL It will be available in 26.2.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.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-25-8": https://git.libreoffice.org/core/commit/7de70bdfeb70075800535bdf173941ba8e5cdc38 tdf#168378: invert text anchor in RTL It will be available in 25.8.2. 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-25-2": https://git.libreoffice.org/core/commit/635d1a1bc5b65b6a7de39258220c1e41041e7d90 tdf#168378: invert text anchor in RTL It will be available in 25.2.7. 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.
Thanks Xisco. I can confirm the issue is resolved after doing an A/B test, between LO 25.8.1 and 25.8.2 (preview). The only thing I can add is that the preview shown to the file-picker (not sure if it's an OS issue), also shows the text to be displaced. Which as I said might be an OS-related issue and not related to LO.