Bug 138447 - A right aligned Text Box in Microsoft Word is MINIMALLY shifted to left in Libre Office Writer
Summary: A right aligned Text Box in Microsoft Word is MINIMALLY shifted to left in Li...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, preBibisect
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2020-11-24 08:31 UTC by Hannes
Modified: 2022-10-01 01:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
A sample with a text box that is aligned to the right margin. (45.25 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-11-24 08:34 UTC, Hannes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes 2020-11-24 08:31:49 UTC
Description:
I have a .docx file with a Text Box that is aligned to the right margin in Mircosoft Word. When I open this document in Libre Office Writer the Text Box is not aligned correctly to the right margin. There is a little gap.

Steps to Reproduce:
1. Insert a Text Box in Microsoft Word.
2. Set the horizontal position of the Text Box to: Alignment = right, relativ to = Margin 
3. Save the document in Microsoft Word 2016.
4. Open the document in Libre Office Writer.

Actual Results:
The Text Box is NOT aligned on the right margin. The Text Box is shifted to the left.

Expected Results:
The Text Box should be aligned to the right margin.


Reproducible: Always


User Profile Reset: No



Additional Info:
see attachment
Comment 1 Hannes 2020-11-24 08:34:53 UTC
Created attachment 167526 [details]
A sample with a text box that is aligned to the right margin.
Comment 2 Timur 2020-11-25 07:00:25 UTC
Please search in existing bugs and see if duplicate of Bug 100920. 
Looks similar enough and if that one is ever fixed, duplicates should be tested. 
Also, good approach is comparison screenshot with DOCX in MSO and in LO. 
Once fileopen is hopefully fixed, also of resave and reopen in LO and MSO.
Comment 3 Justin L 2020-11-28 18:49:15 UTC
Well, this looks terrible in Word 2003. Half of the picture is cut off...

The extra space appears to come from the wrapping settings. The distance from text on the right is 0.32cm. Setting that to zero wedges it against the right side, as expected. So perhaps MS ignores that value if there is no text on the side that is being wrapped. LibreOffice adds that spacing even if you set the wrapping to left-only.

This does not sound like a duplicate Bug 100920.
Comment 4 Justin L 2020-11-28 18:56:00 UTC
This looked terrible in bibisect 43all, but the wrapping spacing still seemed to apply there, so I am marking as pre-bibisect, and likely inherited from OOo.
Comment 5 Justin L 2020-11-28 18:58:23 UTC
I'm not sure how much we can do here. An author could remove the wrapping spacing in order to get the effect he wants. But in this case, wrapping is set for both sides, so we could hardly just set one side to zero on import.

The only other option would be a compatibility flag, and handle the layout differently - a nasty business indeed.