Bug 145208 - FORMATTING Color Scale working in .xlsx but doesn't in .ods files
Summary: FORMATTING Color Scale working in .xlsx but doesn't in .ods files
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 145465 (view as bug list)
Depends on:
Blocks: Conditional-Formatting
  Show dependency treegraph
 
Reported: 2021-10-18 15:52 UTC by tftp9odf
Modified: 2022-09-06 00:10 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Three examples of Color Scale (11.45 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-10-21 01:35 UTC, tftp9odf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tftp9odf 2021-10-18 15:52:02 UTC
Description:
Background color (set with relative value) isn't proper displayed when saving as OpenDocument (.ods) but it works as expected in Office Open XML (.xlsx) file.

Steps to Reproduce:
1. Insert a random Numeric value (e.g. 100) in a random cell (e.g. A1)
2. Select a second random cell (e.g. B1) and go Format > Conditional > Color Scale...
3. Set Color Scale (2 Entries). Minimum (Value) 0, Maximum (Formula) as follow:
=INDIRECT(ADDRESS(ROW(),COLUMN()-1))
4. Insert a Numeric value from 0 to 100 in second cell (B1).
5. Create (save as) two separate files: one as .ods and another one as .xlsx
6. Close LibreOffice Calc and then re-open each file.

Actual Results:
Background cell (B1) is going to change from first picked color to second one in .xlsx.

Same background cell (B1) will be blank in .ods file (only works again if you re-open Conditional Formating window, but if you close and re-open LibreOffice, background cell color is going to be blank again)

Expected Results:
.ods should work as .xlsx does


Reproducible: Always


User Profile Reset: Yes



Additional Info:
.xlsx works perfect.
.ods doesn't works.
Comment 1 m_a_riosv 2021-10-19 17:07:39 UTC
Please attach the xlsx sample file for test.
Comment 2 tftp9odf 2021-10-21 01:35:14 UTC
Created attachment 175855 [details]
Three examples of Color Scale
Comment 3 tftp9odf 2021-10-21 01:40:57 UTC
Comment on attachment 175855 [details]
Three examples of Color Scale

This Office Open XML (.xlsx) file...
... is correctly displayed under LibreOffice Calc.
... is correctly displayed under G**gle Sheets.

but, if you export it as OpenDocument (.ods) file...
... is NOT correctly displayed under LibreOffice Calc (cells are blank).
... is correctly displayed under G**gle Sheets.
Comment 4 QA Administrators 2021-10-21 03:37:05 UTC Comment hidden (obsolete)
Comment 5 Ankur Khandelwal 2021-10-27 10:33:09 UTC
I have changed the status to NEW. 

The bug is reproducible in:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c8e3a9651e74ed25847ce5fbd335e07fdef87799
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: en-IN (en_IN); UI: en-US
Calc: threaded
Comment 6 m_a_riosv 2021-10-31 15:55:18 UTC
*** Bug 145465 has been marked as a duplicate of this bug. ***