Bug 134300 - FILESAVE DOCX Shape relative width to right margin saved incorrectly
Summary: FILESAVE DOCX Shape relative width to right margin saved incorrectly
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: Szabolcs Toth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Shapes
  Show dependency treegraph
 
Reported: 2020-06-25 13:27 UTC by NISZ LibreOffice Team
Modified: 2020-07-20 19:33 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
The original file saved by Writer (12.22 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-06-25 13:27 UTC, NISZ LibreOffice Team
Details
Screenshot of the problem in Writer (55.31 KB, image/png)
2020-06-25 13:28 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-06-25 13:27:55 UTC
Created attachment 162403 [details]
The original file saved by Writer

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

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

Actual results:
Shape is 90% of the page width. 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 right margin width.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: acbe57481e0a10be287aad59201873a0799a94f0
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-06-25 13:28:18 UTC
Created attachment 162404 [details]
Screenshot of the problem in Writer
Comment 2 Xisco Faulí 2020-07-10 15:56:27 UTC Comment hidden (obsolete)
Comment 3 Xisco Faulí 2020-07-10 15:57:42 UTC
Ouch, I used the incorrect file

Reproduced in

Version: 7.1.0.0.alpha0+
Build ID: 12bfedfac3b141fe6c91b0e5ae5b3fb2ba817c48
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Balázs Regényi 2020-07-17 20:28:17 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.
Comment 5 BogdanB 2020-07-20 19:33:31 UTC
Resolved

Verified in
Version: 7.1.0.0.alpha0+
Build ID: abea0d6647c7f1f7e76c73c26cb80e6a67dc5111
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded