Bug 131534

Summary: FILESAVE DOCX Embedded OLE objects icon opens with black background in Word
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: minor CC: Armin.Le.Grand, dgp-mail, nemeth, xiscofauli
Priority: low Keywords: bibisected, bisected, regression
Version: 4.3.0.4 release   
Hardware: All   
OS: All   
See Also: https://bz.apache.org/ooo/show_bug.cgi?id=15508
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112976    
Attachments: Example file from Writer
The original file saved by Writer to docx
The original file saved by Writer 4.2 to docx
Screenshot of the problem in Word

Description NISZ LibreOffice Team 2020-03-24 14:16:06 UTC
Created attachment 158932 [details]
Example file from Writer

When an OLE object is inserted to a new Writer document and saved as DOCX, Word opens it with an ugly black background.

Steps to reproduce:
1.	Insert – Object – OLE-object, Create from file, select an existing file.
2.	Check “Display as icon” box
3.	Save the file as DOCX and open it in Word

Actual results:
Icon in Word will have an ugly black background.

Expected results:
Transparent background even in Word.

LibreOffice details:
Version: 7.0.0.0.alpha0+ (x64)
Build ID: ec85ed21a960a198a01778cdb89a91fabcb5d0c0
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: GL; VCL: win; 
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: CL

Verzió: 6.0.0.3
Build az.: 64a0f66915f38c6217de274f0aa8e15618924765
CPU szálak: 4; OS: Windows 6.3; Felületmegjelenítés: GL; 
Területi beállítások: hu-HU (hu_HU); Calc: CL

Version: 5.1.0.3
Build ID: 5e3e00a007d9b3b6efb6797a8b8e57b51ab1f737
CPU Threads: 4; OS Version: Windows 6.2; UI Render: default; 
Locale: en-US (hu_HU)

Before that only a placeholder image was exported, which looked the same in:
Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: hu-HU (hu_HU)

Version: 4.3.0.4
Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0

But not in:
Verzió: 4.2.0.4
Build az.: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

Verzió: 4.1.0.4
Build az.: 89ea49ddacd9aa532507cbf852f2bb22b1ace28

Until 4.2 PNG images were exported, after that BMP images are.

Bibisected using bibisect-win32-4.3 to: 
URL:https://cgit.freedesktop.org/libreoffice/core/commit/?id=af63727b9fdd48258f692d1ccf6d15daccc18681 
author	Armin Le Grand <alg@apache.org>	2014-02-27 13:46:24 +0000
committer	Caolán McNamara <caolanm@redhat.com>	2014-02-27 19:30:40 +0000
summary: Resolves: #i15508# Added support for BMP file type
Comment 1 NISZ LibreOffice Team 2020-03-24 14:20:20 UTC
Created attachment 158933 [details]
The original file saved by Writer to docx
Comment 2 NISZ LibreOffice Team 2020-03-24 14:20:42 UTC
Created attachment 158934 [details]
The original file saved by Writer 4.2 to docx
Comment 3 NISZ LibreOffice Team 2020-03-24 14:21:08 UTC
Created attachment 158935 [details]
Screenshot of the problem in Word
Comment 4 Dieter 2020-03-27 08:10:28 UTC
I confirm it with

Version: 6.3.5.2 (x64)
Build-ID: dd0751754f11728f69b42ee2af66670068624673
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: threaded

and MS Word 2016
Comment 5 Armin Le Grand 2020-03-30 15:22:47 UTC
A change from 2014 at apache ... ok, will take a look
Comment 6 Xisco Faulí 2021-02-09 13:06:53 UTC
Actually, it can be set to NEW, no action done in a while
Comment 7 QA Administrators 2023-02-10 03:25:36 UTC Comment hidden (obsolete)