Bug 156320 - Conditional formats not copied properly
Summary: Conditional formats not copied properly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Conditional-Formatting
  Show dependency treegraph
 
Reported: 2023-07-17 04:28 UTC by Lazarus
Modified: 2025-07-20 03:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Original individual column formats (5.26 KB, image/png)
2023-07-18 21:24 UTC, Lazarus
Details
Incorrectly duplicated conditional formats (4.64 KB, image/png)
2023-07-18 21:26 UTC, Lazarus
Details
Sample file (7.26 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-07-20 07:42 UTC, Lazarus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lazarus 2023-07-17 04:28:43 UTC
I have conditional formats with ranges like this:

A:A
B:B
C:C
D:D
E:E
F:F

But when I duplicate the sheet, the new sheet has ranges like this:

A:A
B:B,C:E
F:F
Comment 1 m_a_riosv 2023-07-18 02:26:41 UTC Comment hidden (obsolete)
Comment 2 danomois 2023-07-18 02:44:24 UTC
Lazarus,

Hello I am not sure if this is a bug or not.

I believe I have replicated the behavior; however, it looks to be more just a convention.

In that, if A:A has conditional format 'red fill if number<1' for example

and B:B, C:C, D:D, and E:E all have the same conditional format 'green fill if number<1' - then when you duplicate the sheet you'd see the ranges you described.

Because the conditional format 'green fill if number<1' is the same for Columns B,C,D, and E - and the program just groups those together.

That said, if you could be more specific if this is happening when each column has a different conditional format? Or if you can say why specifically you view it as a bug - please comment back!

Thank you
Comment 3 m_a_riosv 2023-07-18 07:58:21 UTC
It's not a bug, it was done a time ago to avoid the duplication of the conditional format, very annoying in other cases.
Comment 4 Lazarus 2023-07-18 21:24:46 UTC
Created attachment 188449 [details]
Original individual column formats
Comment 5 Lazarus 2023-07-18 21:26:32 UTC
Created attachment 188450 [details]
Incorrectly duplicated conditional formats
Comment 6 m_a_riosv 2023-07-18 21:27:56 UTC Comment hidden (obsolete)
Comment 7 Lazarus 2023-07-18 21:32:15 UTC Comment hidden (obsolete)
Comment 8 m_a_riosv 2023-07-18 21:36:08 UTC Comment hidden (obsolete)
Comment 9 Lazarus 2023-07-20 07:42:32 UTC
Created attachment 188489 [details]
Sample file

Thanks for looking
Comment 10 ady 2023-07-20 12:57:10 UTC
Conditional Format Color Scale is one example of the potential problems of unifying/combining ranges in CF management (typically seen when copying ranges or worksheets).

When the min and max values for the CF Color Scale are, for example, within the same column (as in attachment 188489 [details] from comment 9), then unifying/combining ranges (with different columns) will change the resulting Color Scale, because the scale of values in the unified/combined range will consider min and max values of the combined range as a whole, not within each column separately as the original CF does.

In these cases, combining the CF ranges is not the best procedure (and probably inadequate in too many situations).

Repro in many old versions and in a recent LO Dev 24.2.
Comment 11 QA Administrators 2025-07-20 03:11:17 UTC
Dear Lazarus,

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