Bug 134830 - FILESAVE DOCX Shape relative height to top margin saved incorrectly
Summary: FILESAVE DOCX Shape relative height to top margin saved incorrectly
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Balázs Regényi
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: OOXML-Shapes
  Show dependency treegraph
 
Reported: 2020-07-15 10:35 UTC by NISZ LibreOffice Team
Modified: 2020-07-17 19:51 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
The original file saved by Writer (328.97 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-07-15 10:35 UTC, NISZ LibreOffice Team
Details
Screenshot of the original and exported document side by side in Writer (143.01 KB, image/png)
2020-07-15 10:36 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-15 10:35:41 UTC
Created attachment 163057 [details]
The original file saved by Writer

Import of shape width relative to top margin is now that bug #123324 was fixed imported correctly, but saving to DOCX is still incorrect.

Steps to reproduce:
1.	Open attachment #149086 [details]
2.	Save it as DOCX, then reopen

Actual results:
Shape is 90% of the page height. This setting is also visible in Word, but Writer does not have a GUI item for that.

Expected results:
Shape should be 90% of the top margin height.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: f7eff4319be741143f6d8d5e0f2995e3ce46b126
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-07-15 10:36:01 UTC
Created attachment 163058 [details]
Screenshot of the original and exported document side by side in Writer
Comment 2 Balázs Regényi 2020-07-17 19:51:39 UTC
Regényi Balázs committed a patch related to this issue.
It has been pushed to "master":

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

tdf#134299 DOCX shape export: fix relative size of shapes

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.