Bug 135663

Summary: FILESAVE DOCX OLE object distance from text not exported
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: WriterAssignee: Dániel Arató (NISZ) <arato.daniel>
Status: RESOLVED FIXED    
Severity: normal CC: bakos.attilakaroly, nemeth
Priority: medium Keywords: filter:docx
Version: 7.1.0.0.alpha0+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=135660
Whiteboard: target:7.1.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112976    
Attachments: Example file from Writer
The original file saved by Writer
Screenshot of the original and exported document side by side in Word and Writer

Description NISZ LibreOffice Team 2020-08-12 10:51:44 UTC
Created attachment 164198 [details]
Example file from Writer

Attached odt document (originally saved from attachment #164180 [details]) contains an OLE object with Spacing values set.
When saved to DOCX format these are not retained.

Steps to reproduce:
    1. Open attached file and save it as DOCX
    2. Open the saved file in Word

Actual results:
The OLE objects spacing values appear as 0 top/bottom and 0.32 cm left/right, which are the Word-defaults. This makes the text layout a bit tighter than originally, potentially changing page layout in the process.

Expected results:
Spacing values are exported correctly.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: <buildversion>
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-08-12 10:52:00 UTC
Created attachment 164199 [details]
The original file saved by Writer
Comment 2 NISZ LibreOffice Team 2020-08-12 10:52:14 UTC
Created attachment 164200 [details]
Screenshot of the original and exported document side by side in Word and Writer
Comment 3 Commit Notification 2020-09-16 13:17:22 UTC
Daniel Arato (NISZ) committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/17984bf6a57b2c445c2fb9a748e90a74981fcdc8

tdf#135663 DOCX export: fix OLE distance from text

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.