Bug 168378 - SVG text elements get displaced after importing
Summary: SVG text elements get displaced after importing
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0 all versions
Hardware: All All
: medium normal
Assignee: Xisco Faulí
URL:
Whiteboard: target:26.2.0 target:25.8.2 target:25...
Keywords:
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2025-09-12 16:14 UTC by xashyar
Modified: 2025-09-23 14:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
svg sample (2.26 KB, text/html)
2025-09-12 16:46 UTC, xashyar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xashyar 2025-09-12 16:14:26 UTC
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
Comment 1 xashyar 2025-09-12 16:46:41 UTC
Created attachment 202807 [details]
svg sample
Comment 2 xashyar 2025-09-12 16:47:31 UTC
Uploaded attachment to Bugzilla.
Comment 3 m_a_riosv 2025-09-13 01:17:23 UTC
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
Comment 4 Xisco Faulí 2025-09-15 11:29:44 UTC
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
Comment 5 Xisco Faulí 2025-09-15 11:34:12 UTC
it seems the problem is with "direction:rtl"
Comment 7 Commit Notification 2025-09-16 13:28:51 UTC
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.
Comment 8 Commit Notification 2025-09-17 14:47:47 UTC
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.
Comment 9 Commit Notification 2025-09-17 17:36:33 UTC
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.
Comment 10 xashyar 2025-09-23 14:58:02 UTC
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.