Description: 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. Actual Results: The rectangle moved downward. Expected Results: The rectangle should stay in the same place. Reproducible: Always User Profile Reset: No Additional Info:
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: 6.3.0.0.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: https://cgit.freedesktop.org/libreoffice/core/commit/?id=c761df1e42fd11acc5fc05b0baacd803c3788ca6 author Miklos Vajna <vmiklos@collabora.co.uk> 2016-10-25 09:05:47 +0200 committer Miklos Vajna <vmiklos@collabora.co.uk> 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": https://git.libreoffice.org/core/commit/ee6cd34eb3a2bd1f1340063ee4b90a72ff0c9532 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: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
It's ok now. Verified in Version: 7.1.0.0.alpha0+ 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 Calc: threaded
*** Bug 121526 has been marked as a duplicate of this bug. ***
Tibor Nagy committed a patch related to this issue. It has been pushed to "libreoffice-7-0": https://git.libreoffice.org/core/commit/92f1c430e4e77e71e7c914ad567d4970e5b2cd95 tdf#138130, tdf#123621 sw: fix textbox position according to DOCX It will be available in 7.0.5. 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.
Tibor Nagy committed a patch related to this issue. It has been pushed to "libreoffice-7-0-4": https://git.libreoffice.org/core/commit/296d814dcc72ecf15a443aed4d73106cef0672f1 tdf#138130, tdf#123621 sw: fix textbox position according to DOCX It will be available in 7.0.4. 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.