Description: Embedding a docx file containing a chart into a docx file causes the chart not displayed only a placeholder image. Steps to Reproduce: 1. Create a simple document with some text and a default chart. Save this as ODT then as DOCX too. 2. Create another document and choose Insert – Object – OLE object. 3. Choose Create from file in the dialog and select the ODT file created in step 1. 4. Save the file as ODT and reopen. The embedded file shows the text and the chart. 5. Create another document and choose Insert – Object – OLE object. 6. Choose Create from file in the dialog and select the DOCX file created in step 1. 7. Save the file as ODT and reopen. The embedded file shows the text and a placeholder instead of the chart. Actual Results: The chart in the embedded file is replaced with a placeholder when a docx file is embedded. This happens if I open the file in Word too. Expected Results: Should show the chart inside the embedded file. Reproducible: Always User Profile Reset: No Additional Info: LibreOffice details: Version: 6.4.0.0.alpha0+ (x86) Build ID: 49422a469646ad8be43ba828ca24c2484c26b9e8 CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; TinderBox: Win-x86@42, Branch:master, Time: 2019-07-08_00:50:19 Locale: hu-HU (hu_HU); UI-Language: en-US Calc: CL
Created attachment 152872 [details] Example file with text and chart to embed
Created attachment 152873 [details] Example file with text and chart to embed
Created attachment 152874 [details] Example file with lorem-chart.odt embedded
Created attachment 152875 [details] Example file with lorem-chart.docx embedded
Created attachment 152876 [details] The example files reopened in Writer
Created attachment 152877 [details] lorem-embed-docx.odt opened in Writer and Word
Hi NISZ LibreOffice Team, I reproduce with LO 6.4.0.0.alpha0+ (x86) Build ID: 719f4a93e46a6b397356dbb605d2867639ca3942 CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; Locale: en-US (fr_FR); UI-Language: en-US Calc: CL but not if embedded file is linked at insertion time. Have a nice day, Jacques
In 4.1 and earlier the chart was not displayed on inserting the OLE document at all. In 4.2 it started to appear on inserting the document and survived the save to ODT, but after editing the embedded document the chart turned to a placeholder. It worked like that until 5.0 where the reported behavior appeared first. We may call this a regression, however the original state was not that reliable either.
I bibisected with win32-5.0 to range https://git.libreoffice.org/core/+log/8ec545531992251d3670c1bd3b1d1e0c9c998db0..9cd0fdc90983a4c8856762da7ae3948bfb8e7969 I did it like this: 1. Created new document 2. Inserted lorem-chart.docx as ole object 3. Double-clicked the object to look at the chart If the chart looked like a placeholder, I said "bad". I did not save the document.
Created attachment 166438 [details] Example file from current LO 7.1 bibisect version When the docx example file is embedded using current bibisect 7.1 version, saving to odt and reloading now works, particularly since: Version: 7.1.0.0.alpha0+ (x64) Build ID: a41cf57c1eb4cabe5afc1a45d6fe535dbb935217 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
Created attachment 166440 [details] Screenshot of the example attachment #166438 [details] in Writer 7.1
Thanks Balazs for fixing this one too :) *** This bug has been marked as a duplicate of bug 134987 ***