Bug 135047 - FILESAVE DOCX Image spacing settings not saved to DOCX
Summary: FILESAVE DOCX Image spacing settings not saved to DOCX
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Balázs Regényi
URL:
Whiteboard: target:7.1.0
Keywords: filter:docx
Depends on:
Blocks: DOCX-Images
  Show dependency treegraph
 
Reported: 2020-07-22 14:34 UTC by NISZ LibreOffice Team
Modified: 2021-09-25 14:57 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer with image (43.71 KB, application/vnd.oasis.opendocument.text)
2020-07-22 14:34 UTC, NISZ LibreOffice Team
Details
The original file saved by Writer (28.91 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-07-22 14:35 UTC, NISZ LibreOffice Team
Details
Screenshot of the original and exported document side by side in Writer (151.33 KB, image/png)
2020-07-22 14:35 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2020-07-22 14:34:49 UTC
Created attachment 163408 [details]
Example file from Writer with image

Attached simple document contains an image and text. The image was inserted with default settings by dragging from the file manager, and got 0.25 cm spacing.
Saving this file to DOCX loses this spacing, resulting in different text layout around the image.

Steps to reproduce:
    1. Insert and image and wrap it with text.
    2. In the image properties dialog on the Wrap tab there is 0.25 cm spacing in all directions
    3. Save it as docx, reopen the file

Actual results:
Spacing is now 0, text layout changes.

Expected results:
Spacing survives roundtrip.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: b1c83b68bfbf3477fa6a8f4c79c53f6f9ab31f8e
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-07-22 14:35:08 UTC
Created attachment 163409 [details]
The original file saved by Writer
Comment 2 NISZ LibreOffice Team 2020-07-22 14:35:28 UTC
Created attachment 163410 [details]
Screenshot of the original and exported document side by side in Writer
Comment 3 Commit Notification 2020-08-28 10:45:13 UTC
Regényi Balázs committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/fe72feef80a4336be9a57a8137839de1d52b2601

tdf#135047 DOCX export: fix spacing around objects

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.
Comment 4 NISZ LibreOffice Team 2020-09-14 07:40:49 UTC
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 34a09c9c61bff30e8c4d16132bb47b2b1b16e422
CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded