Bug 167719 - FILEOPEN RTF Horizontal line shape is positioned horizontally incorrectly
Summary: FILEOPEN RTF Horizontal line shape is positioned horizontally incorrectly
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: RTF-Shapes
  Show dependency treegraph
 
Reported: 2025-07-29 11:55 UTC by Gabor Kelemen (allotropia)
Modified: 2025-07-29 11:55 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Screenshot of the example file in Word and Writer (78.24 KB, image/png)
2025-07-29 11:55 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2025-07-29 11:55:25 UTC
Created attachment 202063 [details]
Screenshot of the example file in Word and Writer

This is one more issues with the example in bug 167713

When the horizontal line object is anchored in a paragraph, it is positioned to fill the whole width of the paragraph in Word.
In Writer, the horizontal line opens shifted to the right by 1 inch.

1. Open attachment 202055 [details]
-> the first paragraphs horizontal line does not start at the left margin, but it is shifted to the right.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: de-DE (fr_FR); UI: en-US
Calc: threaded

Seems to have started in 6.4 with:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=1ce1c26dd98e6477139e08d1ebe89fa950ff5fb0

author	Noel Grandin <noel.grandin@collabora.co.uk>	2019-07-12 12:06:41 +0200
committer	Noel Grandin <noel.grandin@collabora.co.uk>	2019-07-12 17:04:02 +0200
commit 1ce1c26dd98e6477139e08d1ebe89fa950ff5fb0 (patch)

make tools::Rectangle::Right return Left when empty