Bug 137641 - FILESAVE DOCX DML shapes with vertical position relative to top margin saved incorrectly
Summary: FILESAVE DOCX DML shapes with vertical position relative to top margin saved ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Szabolcs Toth
URL:
Whiteboard: target:7.1.0
Keywords: filter:docx
Depends on:
Blocks: OOXML-Shapes
  Show dependency treegraph
 
Reported: 2020-10-21 07:06 UTC by NISZ LibreOffice Team
Modified: 2020-11-18 15:59 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
The original attachment #164118 saved by Writer (11.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-10-21 07:06 UTC, NISZ LibreOffice Team
Details
Screenshot of the original and exported document side by side in Writer (138.58 KB, image/png)
2020-10-21 07:06 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-10-21 07:06:13 UTC
Created attachment 166563 [details]
The original attachment #164118 [details] saved by Writer

This is a followup to bug #133045 
Now that DML shapes vertically positioned relative to top margin can be opened, it would be nice to be able to save them to DOCX format.

Steps to reproduce:
    1. Open attachment #164118 [details] . Shape positions are now like in Word on attachment #164118 [details]
    2. Save as docx, reopen.

Actual results:
Shapes are incorrectly positioned, relative to line of text of the first paragraph.

Expected results:
Vertical positions roundtrip correctly.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: e0c72e31c1d455c26110c35e8780d420e17cdea6
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-10-21 07:06:37 UTC
Created attachment 166564 [details]
Screenshot of the original and exported document side by side in Writer
Comment 2 Commit Notification 2020-10-27 12:36:35 UTC
Szabolcs Toth committed a patch related to this issue.
It has been pushed to "master":

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

tdf#137641 DOCX export: fix relative from top page border

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.