Bug 154310 - Exporting cell areas with Ctrl-C does not respect conditional formatting
Summary: Exporting cell areas with Ctrl-C does not respect conditional formatting
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Conditional-Formatting
  Show dependency treegraph
 
Reported: 2023-03-21 11:20 UTC by Gerhard Schmidt
Modified: 2023-04-21 12:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Picture 1 (78.13 KB, image/png)
2023-03-21 11:20 UTC, Gerhard Schmidt
Details
Picture 2 (31.61 KB, image/png)
2023-03-21 11:21 UTC, Gerhard Schmidt
Details
The original LibreOffice Calc file (45.09 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-03-21 14:06 UTC, Gerhard Schmidt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Schmidt 2023-03-21 11:20:52 UTC
Created attachment 186114 [details]
Picture 1

If I apply conditional formatting and if I select the cell area and copy it to Paint.Net, the condition is not kept active. I attach two pictures:
Picture 1 shows the table as screenshot in LibreOffice-Calc. All components are marked if their price is above 10% of the total. The condition works perfect.
Picture 2 shows what Paint.Net has after copying: the condition is true for all cells in the last column.

brgs, gsc
Comment 1 Gerhard Schmidt 2023-03-21 11:21:57 UTC
Created attachment 186115 [details]
Picture 2
Comment 2 Xisco Faulí 2023-03-21 12:03:27 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 3 Gerhard Schmidt 2023-03-21 14:06:21 UTC
Created attachment 186118 [details]
The original LibreOffice Calc file

This is the original file.
By the way: pasting the copy into GIMP shows the same error, so it is not a Paint.Net-specific error.

brgs, gsc
Comment 4 ady 2023-03-21 15:53:58 UTC
Repro in:
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b5c3a7502f7ff6ccf0f829c1f3a2ba50b8584c41
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (es_AR); UI: en-US
Calc: CL threaded
Built 2023-03-19

STR:
1. Open attachment 186118 [details] from comment 3.
2. [CTRL]+[END]
3. [CTRL]+[SHIFT]+[HOME]
4. [CTRL]+[C]
5. Menu File > New > HTML document
6. [CTRL]+[V] > Note the background color on the right-most column.

The reddish (ffa6a6) BG color comes from the style named "Unbenannt1" in use for the conditional format in the original file. The default style has no BG color and there is no direct formatting either for BG color.

There seems to be no reason to use the BG color from the style in use for CF in _all_ the rows of the relevant color.
Comment 5 ady 2023-03-21 16:03:24 UTC
LO 3.3 to 6.0.0.3: No BG color in the right-most column, not even in those that should have it.

The current behavior is already present in LO 6.3.3.2, maybe before it.
Comment 6 Gerhard Schmidt 2023-03-21 19:09:02 UTC
I tested a conditional formatting under Linux with LibreOffice in version 7.3.3.1. This shows the same behaviour, but there all conditions are false (instead of true like in the Windows case).

brgs, gsc
Comment 7 Gerhard Schmidt 2023-03-21 19:25:33 UTC
I added the conditional and did not rename the "unbenannt1", because I do not need this template any further.

brgs, gsc