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)
Version:
(earliest affected)
4.1.3.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Color-Palettes
  Show dependency treegraph
 
Reported: 2014-03-29 20:45 UTC by M Welinder
Modified: 2023-03-19 10:54 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


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

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:text>marker</number:text>
  <number:number number:min-integer-digits="1"/>
  <number:text/>
</number:number-style>

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.

References:
http://dmcritchie.mvps.org/excel/colors.htm
http://christian.bloggingon.net/archive/2007/05/23/hintergrundfarben-fuer-excel-in-aspose.aspx

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:
http://www.himmera.com/Excel_Tutorial/Excel_color_code_for_VBA_Macros.html
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 5.2.3.3
Comment 5 QA Administrators 2018-03-10 03:45:16 UTC Comment hidden (obsolete)
Comment 6 mwelinder 2018-03-10 18:06:12 UTC
Sisyphus
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.
Comment 10 QA Administrators 2021-03-18 04:18:38 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2023-03-19 03:25:51 UTC
Dear M Welinder,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug