Bug 116817

Summary: Copying text selected from eclipse, the background color is too strong
Product: LibreOffice Reporter: Jaime T <jtamate>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: normal CC: ilmari.lauhakangas
Priority: medium    
Version: 6.0.2.1 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: The background color change
One docx with the pasted text
The same operation in .odt format

Description Jaime T 2018-04-05 09:44:05 UTC
Created attachment 141118 [details]
The background color change

Maybe related to bug: #38533

Copy a text from eclipse (probably from others, but this ide creates the problem for me), for example:

String passWord =

When the text is pasted, it has some background color, as shown in the attachment in the bottom line.

Save the document in .docx format, and open it again, the color has changed to the color in the upper line.

This does not happen saving/reading in the .odf format.
Comment 1 Jaime T 2018-04-05 09:45:15 UTC
Created attachment 141119 [details]
One docx with the pasted text
Comment 2 Jaime T 2018-04-05 09:45:48 UTC
Created attachment 141120 [details]
The same operation in .odt format
Comment 3 Buovjaga 2018-04-18 12:49:25 UTC
https://bugs.documentfoundation.org/show_bug.cgi?id=107793#c4

"MSO highlighting has only a 16 color palette, so colors are converted to this 16 colors using the best matching color, that's why colors are different"