When the attached document gets opened in LO the rectangle moves downward.
Steps to Reproduce:
1. Open the attached document in LO and MSO.
2. Notice the diffenrences.
The rectangle moved downward.
The rectangle should stay in the same place.
User Profile Reset: No
Created attachment 149473 [details]
The original file
Created attachment 149474 [details]
Screenshot of the original document side by side in Word and Writer.
Confirm with Version: 126.96.36.199.alpha0+
Build ID: 465939feb0e9c382e5581b53b72008979ece4807
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
In older versions are another problems.
Created attachment 162781 [details]
The example file in Writer 5.2 and 5.3
This started in 5.3, before it was differently bad.
Created attachment 162782 [details]
Simplified example file
This file shows the problem in more detail: the left and right text boxes have a bottom and a top margin of 0.5 cm set in Word.
When opened in Writer these values are imported correctly (see Format - Text Box and Shape - Text Attributes dialog) but are applied incorrectly:
Left shape has 1cm bottom margin and the right shape has 0.5 cm top and bottom margins - so the top value is added to the bottom in all cases, even if it is modified in the Text Attributes dialog.
There was a change in commit:
author Miklos Vajna <firstname.lastname@example.org> 2016-10-25 09:05:47 +0200
committer Miklos Vajna <email@example.com> 2016-10-25 09:32:01 +0000
tdf#84678 DOCX import: fix handling of textbox margins
Before this the top margin value was not applied to the text box, although changing the top margin in the Text Attributes dialog still increased the bottom margin, which is probably the real problem here.
The behavior of attachment #162782 [details] changed in 4.4.0 - before in 4.3 they were imported as frames with correct internal padding values.
Tibor Nagy committed a patch related to this issue.
It has been pushed to "master":
tdf#123621 sw: fix textbox position according to DOCX
It will be available in 7.1.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:
Affected users are encouraged to test the fix and report feedback.
It's ok now.
Build ID: abea0d6647c7f1f7e76c73c26cb80e6a67dc5111
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
*** Bug 121526 has been marked as a duplicate of this bug. ***