Download it now!
Bug 76785 - User-defined colors in Excel not loaded properly from xls
Summary: User-defined colors in Excel not loaded properly from xls
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) release
Hardware: Other All
: medium normal
Assignee: Not Assigned
Keywords: needsDevAdvice
Depends on:
Blocks: Color-Palettes
  Show dependency treegraph
Reported: 2014-03-29 20:45 UTC by M Welinder
Modified: 2019-03-18 11:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

color17.xls sample file (5.50 KB, application/
2014-03-29 20:45 UTC, M Welinder
Cell format in Calc (48.05 KB, image/png)
2019-03-18 11:00 UTC, Heiko Tietze

Note You need to log in before you can comment on or make changes to this bug.
Description M Welinder 2014-03-29 20:45:56 UTC
Created attachment 96603 [details]
color17.xls sample file

The upcoming xls file has a cell with format [Color17]"marker"General.
When saved to ods this becomes...

<number:number-style style:name="N132">
  <style:text-properties fo:color="#333333"/>
  <number:number number:min-integer-digits="1"/>

That's the wrong colour.  It should be #9999FF.  The other numbered colours
are wrong too.  When Gnumeric (git) reads the above ods sniplet, it generates
[Color56]"marker"General because #333333 is colour 56 in the Excel palette.


Note, that the correct 56-colour palette has duplicates.  That's stupid,
but it is MS stupidity.
Comment 1 Julien Nabet 2014-03-30 14:44:11 UTC
On pc Debian x86-64 with master sources updated today, I can reproduce the problem.
Not official but I found this about Excel colors:
Comment 2 QA Administrators 2015-12-20 16:14:09 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2017-01-03 19:48:49 UTC Comment hidden (obsolete)
Comment 4 mwelinder 2017-01-04 14:45:19 UTC
Still there in
Comment 5 QA Administrators 2018-03-10 03:45:16 UTC Comment hidden (obsolete)
Comment 6 mwelinder 2018-03-10 18:06:12 UTC
Comment 7 Heiko Tietze 2018-03-17 17:01:43 UTC Comment hidden (no-value)
Comment 8 QA Administrators 2019-03-18 03:45:43 UTC Comment hidden (obsolete)
Comment 9 Heiko Tietze 2019-03-18 11:00:44 UTC
Created attachment 150043 [details]
Cell format in Calc

The cell content should be "123" in a defined color (it's AFAICS not stored in the xml file) with the formatting taken from somewhere else. Seems to be a WF to me.