Bug 81611 - FORMATTING: Conditional format not copied after copying sheet
Summary: FORMATTING: Conditional format not copied after copying sheet
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.0.6.2 release
Hardware: All All
: high minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2014-07-21 15:27 UTC by Lenge
Modified: 2014-12-07 21:36 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example of original sheet and 2 copies. (63.04 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-07-29 10:59 UTC, Dewald Gerber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lenge 2014-07-21 15:27:10 UTC
I came across a tricky corner case in copying conditional formats:

1.) Apply a conditional format to a single cell (or a range of cells).

2.) Copy the entire sheet (Sheet1) to a new one (Sheet1_2), including all conditional formatting.

3.) Now, when you copy any conditionally formatted cells from the original Sheet1 to a new location, the conditional formatting is correctly copied. The same holds if you transfer the formatting via the Format Paintbrush.

4.) However, when you copy any conditionally formatted cells from the copied Sheet1_2 to a new location, the conditional formatting is NOT copied. The same bug occurs if you transfer the formatting via the Format Paintbrush.
Comment 1 ign_christian 2014-07-21 16:06:40 UTC
Simple steps to reproduce:
1. In cell A1 apply conditional format (CF) with style 'Heading'
2. Right-click "Sheet1" > Move/Copy Sheet > OK

Expected result:
3. In "Sheet1", copy cell A1 to B1

Unexpected result:
4. In "Sheet1_2", copy cell A1 to B1

Reproduced with LO 4.2.6.1
Not reproduced with LO 4.3.0.3

I don't know whether fix will be backported to 4.2.x
Waiting for confirmation from dev
Comment 2 Joel Madero 2014-07-21 16:29:26 UTC
At least marking as NEW as Christian has confirmed that it exists on 4.2. I'm 95% sure that this is a duplicate of another bug but can't seem to find it.

@Markus - think that the fix in 4.3 will be backported or should we just close this as WFM?
Comment 3 Joel Madero 2014-07-21 16:29:54 UTC
Minor bug - can slow down the creation of professional quality work but won't prevent it.
Comment 4 Dewald Gerber 2014-07-29 10:59:00 UTC
Created attachment 103642 [details]
Example of original sheet and 2 copies.
Comment 5 ign_christian 2014-08-12 15:22:07 UTC
(In reply to comment #1)
> Expected result:
> 3. In "Sheet1", copy cell A1 to B1
I was wrong. Actually CF not copied to B1 -> see Bug 82503
Bug still exist in 4.3.1.1

Still trying to find the relation with Bug 82503
Comment 6 ign_christian 2014-08-12 15:53:26 UTC
Trying to summarize this bug (with additional tests in another versions):

- LO 4.3.1.1 
  -> pasting result in "Sheet1" and "Sheet1_2" is incorrect because of Bug 82503

- LO 4.2.6.2, 4.2.6.1, 4.2.5.2, 4.1.6.2, 4.0.6.2 
  -> same behavior as comment 0 & comment 1

- LO 4.2.4.2, 4.2.0.0.beta1 
  -> reversed behavior (correct pasting in "Sheet1_2", incorrect in "Sheet1")

- LO 3.6.7.2 
  -> correct results, so it's broken since 4.0.x
Comment 7 Markus Mohrhard 2014-08-18 06:13:46 UTC

*** This bug has been marked as a duplicate of bug 82503 ***
Comment 8 Lenge 2014-11-06 18:22:23 UTC
Following comment 12 of bug 82503 (https://bugs.freedesktop.org/show_bug.cgi?id=82503#c12), this bug is not a duplicate and still not fixed.

=> Reopening
Comment 9 Joel Madero 2014-11-06 18:24:12 UTC
Well - Markus is one of our core calc developers so that's an interesting opinion....anyways REOPENED is wrong status. Moving to NEW....even though it's probably a dupe.
Comment 10 Lenge 2014-11-07 15:51:01 UTC
@Joel: Maybe you are right; I have just tried again can no longer reproduce this bug with the latest release version (4.3.3.2).

@Christian: As it was your comment, could you please check again and see if you can confirm this bug fixed?
Comment 11 Markus Mohrhard 2014-12-07 21:36:57 UTC
This one is fixed.