Bug 138561

Summary: FILEOPEN DOCX Drawing shapes placed on chart open in the top left corner
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: ChartAssignee: Balázs Varga <varga.balazs3>
Status: VERIFIED FIXED    
Severity: normal CC: nemeth, varga.balazs3
Priority: medium Keywords: filter:docx
Version: 7.2.0.0.alpha0+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=72776
https://bugs.documentfoundation.org/show_bug.cgi?id=128621
https://bugs.documentfoundation.org/show_bug.cgi?id=143130
Whiteboard: target:7.2.0 target:7.1.0.0.beta2
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 75057    
Attachments: Example file from Word
Screenshot of the original document side by side in Word and Writer

Description NISZ LibreOffice Team 2020-11-30 07:47:18 UTC
Created attachment 167663 [details]
Example file from Word

This is a followup to bug #72776
When a chart containing drawing shapes in a docx file is opened the positioning and size of the shapes is not imported correctly, all appear in the top left corner of the chart and with size of 1x1 pixel.
These open fine in XLSX format, see bug #128621. For this bug I reused the example file from there, copy-pasting the chart into Word.

Steps to reproduce:
    1. Open attached file

Actual results:
Shapes are virtually not visible, only part of their text

Expected results:
Same size and position of shapes as in Word.

LibreOffice details:
Version: 7.2.0.0.alpha0+ (x64)
Build ID: f7e2f5bca938aa916830e07895d2da6820282055
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-11-30 07:48:24 UTC
Created attachment 167664 [details]
Screenshot of the original document side by side in Word and Writer
Comment 2 Commit Notification 2020-11-30 09:24:48 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":

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

tdf#138561 OOXML Chart import: fix custom shape position

It will be available in 7.2.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 3 Commit Notification 2020-11-30 11:35:19 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "libreoffice-7-1":

https://git.libreoffice.org/core/commit/48ad658a7aacf849e773aa5d3400540d81f988f2

tdf#138561 OOXML Chart import: fix custom shape position

It will be available in 7.1.0.0.beta2.

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-12-30 10:42:16 UTC
Verified in:

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 368c56144aab5794c39d5bc2082d9b3d6d7cebdb
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

Thanks for fixing!