Bug 108091 - Text background color is changed after saving to DOCX and reloading.
Summary: Text background color is changed after saving to DOCX and reloading.
Status: RESOLVED DUPLICATE of bug 107793
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-25 20:56 UTC by Olivier
Modified: 2017-05-31 14:43 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Text file with a word highlighted (8.81 KB, application/vnd.oasis.opendocument.text)
2017-05-25 20:57 UTC, Olivier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier 2017-05-25 20:56:08 UTC
Description:
Saving to DOCX changes highlighting color.

Steps to Reproduce:
Consider a text with a word highlighted in "yellow".
Save to DOCX format and open the produced DOCX file. 

Actual Results:  
Observe that the highlighting is now in "yellow2"


Expected Results:
Expectation : highlighting color "yellow" should have been preserved.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Comment 1 Olivier 2017-05-25 20:57:36 UTC
Created attachment 133581 [details]
Text file with a word highlighted
Comment 2 Olivier 2017-05-25 20:58:21 UTC
Comment on attachment 133581 [details]
Text file with a word highlighted

See instructions in the file that describe the bug
Comment 3 Jacques Guilleron 2017-05-26 09:26:07 UTC
Hi oc-spam65,

I don't reproduce with 
LO 5.5.0.0.alpha0+ Build ID: 0e6297932252403883a6057feee488e4ee2bc360
CPU threads: 2; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2017-05-23_00:14:17
Locale: fr-FR (fr_FR); Calc: CL
nor with
LO 5.3.0.0.alpha1 Build ID: f4ca1573fcf445164c068c1046ab5d084e1b005f
Threads CPU : 2; Version de l'OS :Windows 6.1; UI Render : par défaut; 
Locale : fr-FR (fr_FR); Calc: CL

Linux only?
Comment 4 Xisco Faulí 2017-05-26 15:02:31 UTC Comment hidden (obsolete)
Comment 5 Telesto 2017-05-26 19:50:01 UTC
I can confirm the color highlight color changes after saving to DOCX and reloading it with
Version: 5.5.0.0.alpha0+
Build ID: d57e6cd9dcc96112994ca2b14ac45896e86b26e5
CPU threads: 4; OS: Windows 6.19; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-05-18_22:43:07
Locale: nl-NL (nl_NL); Calc: CL

But I expect this to be a dupe of bug 107793
Comment 6 Olivier 2017-05-26 20:19:12 UTC
"I can confirm the color highlight color changes after saving to DOCX and reloading"

Message to the people who could not reproduce the bug: did you really save to DOCX and then load the produced DOCX file?

"But I expect this to be a dupe of bug 107793"

I do not agree because bug 107793 is about _multiple_ color highlighting. In this bug there is only one highlighted word. This is more fundamental.
Comment 7 Xisco Faulí 2017-05-27 23:58:28 UTC Comment hidden (obsolete)
Comment 8 Xisco Faulí 2017-05-28 00:01:45 UTC
(In reply to oc-spam65 from comment #6)
> "I can confirm the color highlight color changes after saving to DOCX and
> reloading"
> 
> Message to the people who could not reproduce the bug: did you really save
> to DOCX and then load the produced DOCX file?
> 
> "But I expect this to be a dupe of bug 107793"
> 
> I do not agree because bug 107793 is about _multiple_ color highlighting. In
> this bug there is only one highlighted word. This is more fundamental.

Sorry for my latest message. it's incorrect.
Could you please bisect the bug and see whether it was introduced by 8519d51b3a06a84d0d6418651e66e9bb534f1788 as per bug 107793 ?
More info: https://wiki.documentfoundation.org/QA/Bibisect
Comment 9 Olivier 2017-05-30 16:35:25 UTC
I did the bisection and it seems the bug is indeed due to commit 8519d51b3a06a84d0d6418651e66e9bb534f1788.

---
~/bibisect-50max$ git bisect good a15486a1357463602704e98940d162b2759cfeec is the first bad commit
commit a15486a1357463602704e98940d162b2759cfeec
Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Wed May 27 20:14:34 2015 +0800

    source-hash-8519d51b3a06a84d0d6418651e66e9bb534f1788
    
    commit 8519d51b3a06a84d0d6418651e66e9bb534f1788
    Author:     Zolnai Tamás <zolnaitamas2000@gmail.com>
    AuthorDate: Wed Mar 18 10:31:11 2015 +0100
    Commit:     Zolnai Tamás <zolnaitamas2000@gmail.com>
    CommitDate: Sat Mar 21 16:19:09 2015 +0100

        Char highlight: export character background to MSO formats based on settings

        Change-Id: Iaaf9e7ee5e61cfabb0d675b83fa71776dece87e2

:040000 040000 615dce967ba269228ef32e6f61e2bd93b8e409d4 68b3ba50c281698db5c540ab9ad4615155c46039 M      opt
---
Comment 10 Olivier 2017-05-30 16:45:02 UTC
Though not exactly the same bug... In my report, I complained that the highlighting color changed from "Yellow" to "Yellow2". In the identified bug, the highlighting color disappears.
Comment 11 Xisco Faulí 2017-05-30 22:19:18 UTC
(In reply to oc-spam65 from comment #10)
> Though not exactly the same bug... In my report, I complained that the
> highlighting color changed from "Yellow" to "Yellow2". In the identified
> bug, the highlighting color disappears.

Hi,
Thanks for bisecting this. Although the behaviour is slightly different, it looks like both bugs have the same root cause. Closing as RESOLVED DUPLICATED.

*** This bug has been marked as a duplicate of bug 107793 ***
Comment 12 Olivier 2017-05-31 14:43:53 UTC
For a conclusion, I can repeat here the idea explained in bug 107793 by T. Zolnai:

"""
In MSO there are two kind of character background called highlighting and shading. By default LO highlighting is saved as MSO highlighting, but MSO highlighting has only a 16 color palette
"""
"""
At the Tools -> Options -> Load/Save -> Microsoft Office you can change the default behavior to save LO highlighting as MSO shading
"""

This meets my need.