Bug 138123 - An SVG file with several lines of text centered is not shown centered
Summary: An SVG file with several lines of text centered is not shown centered
Status: RESOLVED DUPLICATE of bug 103888
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.0 all versions
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2020-11-11 06:48 UTC by scrp445
Modified: 2023-08-02 12:09 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Text in Inkscape (11.16 KB, image/png)
2020-11-11 06:51 UTC, scrp445
Details
Text in LibreOffice (9.96 KB, image/png)
2020-11-11 06:54 UTC, scrp445
Details
SVG File (1.04 KB, image/svg+xml)
2020-11-11 07:00 UTC, scrp445
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scrp445 2020-11-11 06:48:35 UTC
Description:
If I create an SVG file with text centered, when I import it into LibreOffice (Writer or Impress) the text is shifted to the left. I noticed this problem several years ago, with the 5.2 update, and since then it remains the same until now, in LO 7.0.3.1. It happens in both Linux and Windows.

Steps to Reproduce:
1.Create a file with some text centered (inside a square to make it more visible)
2.Save it as SVG (no matter if it is optimized or not)
3.Import it in LibreOffice

Actual Results:
The text is shown shifted to the left.

Expected Results:
The text should be centered


Reproducible: Always


User Profile Reset: Yes



Additional Info:
In all this time I already did several clean installations of various operating systems, but in all of them the problem occurred.
Comment 1 scrp445 2020-11-11 06:51:44 UTC
Created attachment 167183 [details]
Text in Inkscape

In Inkscape the text is displayed correctly.
Comment 2 scrp445 2020-11-11 06:54:52 UTC
Created attachment 167184 [details]
Text in LibreOffice

In LibreOffice the text is shifted to the left.
Comment 3 scrp445 2020-11-11 07:00:15 UTC
Created attachment 167185 [details]
SVG File
Comment 4 Xisco Faulí 2020-11-30 12:43:05 UTC
Also reproduced in

Version: 4.5.0.0.alpha0+
Build ID: 2851ce5afd0f37764cbbc2c2a9a63c7adc844311
Locale: en_US
Comment 5 Xisco Faulí 2022-10-03 10:26:17 UTC
Still reproducible in

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: a0bc0cc81b597aa81189355a8125753d6b873cce
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 6 Xisco Faulí 2023-08-02 12:09:08 UTC
This issue is fixed since a42f5faac7c6d4590e632cf40e3ba9eb618e6f56
Closing as duplicate of bug 103888

*** This bug has been marked as a duplicate of bug 103888 ***