Bug 140855 - Calc Row conditional colour formatting corrupted by column sort with alternate conditional colour format
Summary: Calc Row conditional colour formatting corrupted by column sort with alternat...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.2 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Conditional-Formatting
  Show dependency treegraph
 
Reported: 2021-03-07 11:11 UTC by Colin
Modified: 2023-08-01 08:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample Calc (19.53 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-03-07 11:12 UTC, Colin
Details
Screen Grab (113.52 KB, image/png)
2021-03-07 11:13 UTC, Colin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin 2021-03-07 11:11:28 UTC
Description:
Colour rendition of a filtered array with a conditional colour sort assigned to MOST of the cells in each row is corrupted when sorted on a column that has an alternate colour sort assigned to the column.
Sample Calc file and .png example attached.

Steps to Reproduce:
1. From the sample calc attached which is sorted on column [A] - the original natural data entry condition, observe the three colour sort applied to Cells C2:F10 together with the three colour sort applied to Cells O2:P10.
2. Sort on either column [O] or [P] and observe the corruption of colour scheme for C2:F10
Columns [Q:AC] are irrelevant to the conditional colour format and [AE:AH] only affect the identification of the "latest" column containing non-zero values

Actual Results:
Colour scheme of C2:F10 becomes corrupted - no longer reflecting the original Correct/Anticipated colour scheme for each row. O2:P10 is Correct/Anticipated.
See attached .png.

Expected Results:
Colour scheme for each row of C2:F10 should remain unchanged from the unsorted condition as the data rows have not changed value - just location.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.0.4.2 (x64)
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: sv-SE (en_GB); UI: en-GB
Calc: threaded
Comment 1 Colin 2021-03-07 11:12:22 UTC
Created attachment 170298 [details]
Sample Calc
Comment 2 Colin 2021-03-07 11:13:05 UTC
Created attachment 170299 [details]
Screen Grab
Comment 3 Colin 2021-03-07 11:19:52 UTC
Perhaps I should have mentioned: I believe it worked correctly prior to this update of LO as the original .ods was exported to eXcel which still processes the colour scale correctly. I must also confess - I disposed of my original .ods and have simply opened the eXcel with LO and saved it as a .ods - which is now corrupting the colour scheme.
either way - it's a bug in the Conditional Colour Formatting or the opening and saving of a fairly simple eXcel.
Comment 4 Colin 2021-03-07 11:25:08 UTC
Another insight: I initially inserted a column between [C]&[D] to include more data so this may have "pushed" a change into the Colour Format Register but I have subsequently removed that column and executed a number of new saves with alternate names which made no difference to the error.
Comment 5 Colin 2021-03-07 11:34:55 UTC
Another observation: Sorting on B,C,D,E or F produces further colour scheme variations
Comment 6 Colin 2021-03-14 09:49:37 UTC
I have now observed:
1. Save and close the file whilst corruption is apparent.
2. Open the newly saved file.
3. Observe the corrected/consistent/desired colour scheme
Conclusion:
The colour scheme is corrected by the save > re-open process
Comment 7 Colin 2021-03-29 04:46:43 UTC
As part of the resolution of another report, I have today replaced my profile.
The bug is still apparent
Comment 8 Xisco Faulí 2021-03-31 08:43:03 UTC
I do reproduce the conditional colors in columns O and P disappear if sorting A2:AH10 by column O or P

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: c088d26578d1be352efa49bd164a8217627648de
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 9 Xisco Faulí 2021-03-31 08:46:44 UTC
In order to reproduce the issue you need to sort first by column O and then by column P
Comment 10 Xisco Faulí 2021-03-31 08:47:34 UTC
Also reproduced in

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 5.7; Render: default; 

Locale: en-US (en_US.UTF-8)
Comment 11 Xisco Faulí 2021-03-31 08:48:42 UTC
Also reproduced in

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Comment 12 Xisco Faulí 2021-03-31 08:49:53 UTC
and

Version: 4.1.0.0.alpha1+
Build ID: a2c9d4f8bbde97f175bae4df771273a61251f40
Comment 13 QA Administrators 2023-07-31 03:05:27 UTC Comment hidden (obsolete)
Comment 14 Colin 2023-08-01 08:12:33 UTC
Version: 7.4.7.2 (x64) / LibreOffice Community
Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: sv-SE (en_GB); UI: en-GB
Calc: threaded

Still a Bug

@Xisco Fauli has previously verified all the way back to 4.1

I just attempted to prove 3 and can't even get it to function correctly. Some conflict over JRE which it initially demanded and then failed to find after installing it - even following a restart.

None of the existing CF parameters appear in V3 CF - I'm not sure if that far back it even had the Manage function but as they were not present I wasn't presented with that option.

Either the IFERROR() or INDIRECT() function which is part of the ColO processing fails with #NAME#

Probably me/my installation but if defintive proof of a legacy error is required then somebody else needs to be resåponsible for that.