Bug 71707

Summary: FORMATTING: Conditional Formatting is incorrectly linked on copied sheet
Product: LibreOffice Reporter: oudeis69
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: CLOSED DUPLICATE    
Severity: normal CC: miguelangelrv
Priority: medium    
Version: 4.1.3.2 release   
Hardware: Other   
OS: Linux (All)   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=61946
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: simple calc document showing the erroneous behaviour.

Description oudeis69 2013-11-17 17:23:48 UTC
Created attachment 89371 [details]
simple calc document showing the erroneous behaviour.

Problem description: 
 
The conditional formatting (formula type) of source sheet is copied to the destination sheet, but the contents of the conditional formatting formula still refers to the source sheet. 

Steps to reproduce:
1. create a simple conditional formatting on Sheet1.A1: =$C1="x" 
2. copy Sheet1 as Sheet2 -> conditional formatting on Sheet2.A1: =$C1="x"
3. insert a column B in Sheet1
4. conditional formatting on Sheet2.A1 is now WRONG: =$D1="x"

Current behavior:
The copied sheet conditional formatting formulas refer to the wrong sheet 

Expected behavior:
The copied sheet conditional formatting formulas must refer to the copied sheet and not to the source shett.

              
Operating System: Ubuntu
Version: 4.1.3.2 release
Comment 1 m_a_riosv 2013-11-17 22:12:54 UTC
Hi oudeis69, thanks for reporting.

Are you sure, there are not both sheets selected when inserting the column?

I can not reproduce the issue if only Sheet1 is selected.
Comment 2 oudeis69 2013-11-18 06:36:15 UTC
The two sheets weren't selected. 
How can I be so sure? Easy: the (visible) contents of row C in sheet2 is *not* moved...
Comment 3 oudeis69 2013-11-18 06:49:40 UTC
My explanation (and description) of the bug was not clear enough...

The problem is with the conditional formatting only when using, e.g.:
  "Formula is" $C1="x"

My wordings were not "correct" in the bug submission...
Comment 4 Eike Rathke 2013-11-23 12:18:21 UTC
Fixed with bug 61946

*** This bug has been marked as a duplicate of bug 61946 ***