Bug 138561 - FILEOPEN DOCX Drawing shapes placed on chart open in the top left corner
Summary: FILEOPEN DOCX Drawing shapes placed on chart open in the top left corner
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Balázs Varga
URL:
Whiteboard: target:7.2.0 target:7.1.0.0.beta2
Keywords: filter:docx
Depends on:
Blocks: OOXML-Chart
  Show dependency treegraph
 
Reported: 2020-11-30 07:47 UTC by NISZ LibreOffice Team
Modified: 2021-06-30 11:08 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word (15.63 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-11-30 07:47 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document side by side in Word and Writer (176.38 KB, image/png)
2020-11-30 07:48 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-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!