Bug 137184 - FILESAVE RTF Text in footer aligned incorrectly
Summary: FILESAVE RTF Text in footer aligned incorrectly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:rtf
Depends on:
Blocks: RTF-Header-Footer
  Show dependency treegraph
Reported: 2020-10-01 13:06 UTC by Buovjaga
Modified: 2022-01-27 15:41 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

The example file and its RTF version in Writer master (115.29 KB, image/png)
2022-01-27 15:41 UTC, Gabor Kelemen (allotropia)

Note You need to log in before you can comment on or make changes to this bug.
Description Buovjaga 2020-10-01 13:06:19 UTC
1. Open attachment 104763 [details] from bug 82734
2. Save as RTF and reload

Observe how "Microsoft Dynamics GP 2013 on Windows Azure" in the footer on the second page is now aligned to the right. I checked in MSO 2013 that left alignment is the correct one.

About the history of behaviour:
In Linux 43all repo, the range between last36onmaster and last40master seemed promising to bibisect, because in last36onmaster the text position was correct upon opening and then saving to RTF. However, in the range there were commits which produced non-opening RTF files and the repo does not have 1 build per commit, so I did not feel it worth the effort to finish.

Starting from 4.0, there was a period where the text was already misaligned upon opening the DOCX. This was fixed by https://git.libreoffice.org/core/commit/7d9bb549d498d6beed2c4050c402d09643febdfa (found in 44max)

Arch Linux 64-bit
Build ID: 09c24681a3414092fde50ec0f617c9f7c79e8a61
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 30 September 2020
Comment 1 Dieter 2020-11-07 05:35:32 UTC
I confirm it with

Version: (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded
Comment 2 Gabor Kelemen (allotropia) 2022-01-27 15:41:19 UTC
Created attachment 177843 [details]
The example file and its RTF version in Writer master

Still a problem in

Version: (x64) / LibreOffice Community
Build ID: eb69767d7c1bb8e6e780fd9503f08c9d7f5ecb45
CPU threads: 13; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Looks like the "Same content on left and right pages" flag is not considered on RTF save.
In the DOCX original it is not enabled, but enabling it creates the look seen in RTF.
In the RTF version it is enabled.