Created attachment 160821 [details]
Example file from Word
This is a spin off from bug #131539
OLE object saving was fixed there, but only in the case when the object was created in Writer.
If a Word-made OLE object is imported, it has no name by default, and in this case the alignment is not saved.
Steps to reproduce:
1. Open attached document
2. A, Save as DOCX, reopen.
3. B, Right click on the object, select Properties from the menu. Go to Options tab, close the dialog and save as DOCX, reopen.
In the A, case the object alignment is not retained, in the case B it is.
Object alignment is retained in case A.
Version: 18.104.22.168.alpha1+ (x64)
Build ID: 1ed7607454d1492f65c78443cb661d5873face6b
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win;
Locale: hu-HU (hu_HU); UI: en-US
Created attachment 160822 [details]
The original file saved by Writer / case A
Created attachment 160823 [details]
The original file saved by Writer / case B
Created attachment 160824 [details]
The exported files in Word – Case A is wrong, Case B is correct
Attila Bakos committed a patch related to this issue.
It has been pushed to "master":
tdf#133035 DOCX export: fix position of unnamed OLE
It will be available in 7.0.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.
Created attachment 161254 [details]
The exported file from Writer after the patch
Created attachment 161255 [details]
Screenshot before and after the export with the patch