Bug 116817 - Copying text selected from eclipse, the background color is too strong
Summary: Copying text selected from eclipse, the background color is too strong
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.2.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-05 09:44 UTC by Jaime T
Modified: 2018-04-18 12:49 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
The background color change (2.54 KB, image/png)
2018-04-05 09:44 UTC, Jaime T
Details
One docx with the pasted text (4.21 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-04-05 09:45 UTC, Jaime T
Details
The same operation in .odt format (9.00 KB, application/vnd.oasis.opendocument.text)
2018-04-05 09:45 UTC, Jaime T
Details

Note You need to log in before you can comment on or make changes to this bug.
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"