Bug 122697 - Clear Direct Formatting removes Conditional Formatting
Summary: Clear Direct Formatting removes Conditional Formatting
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://help.libreoffice.org/6.3/en-U...
Keywords: needsDevAdvice
Depends on:
Blocks: Conditional-Formatting
  Show dependency treegraph
Reported: 2019-01-14 06:26 UTC by russell
Modified: 2019-01-15 09:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Image of spreadsheet (46.35 KB, image/jpeg)
2019-01-14 06:27 UTC, russell
Sample spreadsheet (16.40 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-01-14 06:28 UTC, russell

Note You need to log in before you can comment on or make changes to this bug.
Description russell 2019-01-14 06:26:23 UTC
Clear Direct Formatting removes Conditional Formatting.

Conditional Format itself is deleted when entire spreadsheet is selected.

Steps to Reproduce:
1. Create a spreadsheet with Conditional Formatting (i.e., change background for odd rows) for the range A2:E9
2. Right-click E5 and select Clear Direct Formatting.
3. The Conditional Format will no longer appy to E5. Checking the conditional format will show the range changed from A2:E9 to A2:D9,E2:E4,E6:E9.

Please see attached sample spreadsheet and image. 

Actual Results:
Conditional Format is removed.

If the entire spreadsheet is selected and Clear Direct Formatting is selected, the Conditional Format itself will be deleted.

Expected Results:
Conditional Format is not removed. The range stays the same.
The Conditional Format itself is NOT deleted.

Reproducible: Always

User Profile Reset: No

Additional Info:
From the Help:

Clear Direct Formatting

Removes direct formatting and formatting by character styles from the selection.

Direct formatting is formatting that you applied without using styles, such as setting bold typeface by clicking the Bold icon.
Comment 1 russell 2019-01-14 06:27:22 UTC
Created attachment 148296 [details]
Image of spreadsheet
Comment 2 russell 2019-01-14 06:28:06 UTC
Created attachment 148297 [details]
Sample spreadsheet
Comment 3 Timur 2019-01-14 12:32:44 UTC
Reproduces in Windows with OO 3.3 and LO 6.3+. 
I'm not sure if this is by design, if Conditional Formatting is applied as Direct Formatting.
Comment 4 Roman Kuznetsov 2019-01-14 19:17:05 UTC
(In reply to Timur from comment #3)
> Reproduces in Windows with OO 3.3 and LO 6.3+. 
> I'm not sure if this is by design, if Conditional Formatting is applied as
> Direct Formatting.

CF should to use cell styles
Comment 5 Timur 2019-01-15 09:33:56 UTC
CF uses styles but cells do not really have those Cell Styles applied. 
This is either a bug either we need to update documentation to explain this important issue. So I'll set to New. But we still need good explanation.

PS Roman, no need to quote previous post. If responding to the whole older post, and not some exact sentence, enough to use just (In reply to Roman Kuznetsov from comment #4).