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
Created attachment 167526 [details] A sample with a text box that is aligned to the right margin.
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.
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.
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.
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.