Bug 126476 - FILESAVE DOCX Embedded OLE object not displayed in embedded DOCX file
Summary: FILESAVE DOCX Embedded OLE object not displayed in embedded DOCX file
Status: RESOLVED DUPLICATE of bug 134987
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, needsDevAdvice, regression
Depends on:
Blocks: DOCX-OLE-Objects
  Show dependency treegraph
 
Reported: 2019-07-19 09:39 UTC by NISZ LibreOffice Team
Modified: 2020-10-16 18:23 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file with text and chart to embed (24.61 KB, application/binary)
2019-07-19 09:40 UTC, NISZ LibreOffice Team
Details
Example file with text and chart to embed (18.46 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-07-19 09:40 UTC, NISZ LibreOffice Team
Details
Example file with lorem-chart.odt embedded (33.56 KB, application/binary)
2019-07-19 09:46 UTC, NISZ LibreOffice Team
Details
Example file with lorem-chart.docx embedded (25.70 KB, application/binary)
2019-07-19 09:47 UTC, NISZ LibreOffice Team
Details
The example files reopened in Writer (130.79 KB, image/png)
2019-07-19 09:48 UTC, NISZ LibreOffice Team
Details
lorem-embed-docx.odt opened in Writer and Word (132.73 KB, image/png)
2019-07-19 09:48 UTC, NISZ LibreOffice Team
Details
Example file from current LO 7.1 bibisect version (37.95 KB, application/vnd.oasis.opendocument.text)
2020-10-16 18:21 UTC, NISZ LibreOffice Team
Details
Screenshot of the example attachment #166438 in Writer 7.1 (59.62 KB, image/png)
2020-10-16 18:22 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 2019-07-19 09:39:24 UTC
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
Comment 1 NISZ LibreOffice Team 2019-07-19 09:40:29 UTC
Created attachment 152872 [details]
Example file with text and chart to embed
Comment 2 NISZ LibreOffice Team 2019-07-19 09:40:58 UTC
Created attachment 152873 [details]
Example file with text and chart to embed
Comment 3 NISZ LibreOffice Team 2019-07-19 09:46:42 UTC
Created attachment 152874 [details]
Example file with lorem-chart.odt embedded
Comment 4 NISZ LibreOffice Team 2019-07-19 09:47:56 UTC
Created attachment 152875 [details]
Example file with lorem-chart.docx embedded
Comment 5 NISZ LibreOffice Team 2019-07-19 09:48:21 UTC
Created attachment 152876 [details]
The example files reopened in Writer
Comment 6 NISZ LibreOffice Team 2019-07-19 09:48:48 UTC
Created attachment 152877 [details]
lorem-embed-docx.odt opened in Writer and Word
Comment 7 Jacques Guilleron 2019-07-20 14:46:37 UTC
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
Comment 8 Gabor Kelemen (allotropia) 2019-07-22 08:34:11 UTC
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.
Comment 9 Buovjaga 2020-06-07 17:55:30 UTC
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.
Comment 10 NISZ LibreOffice Team 2020-10-16 18:21:33 UTC
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
Comment 11 NISZ LibreOffice Team 2020-10-16 18:22:44 UTC
Created attachment 166440 [details]
Screenshot of the example attachment #166438 [details] in Writer 7.1
Comment 12 NISZ LibreOffice Team 2020-10-16 18:23:55 UTC
Thanks Balazs for fixing this one too :)

*** This bug has been marked as a duplicate of bug 134987 ***