Apache OpenOffice (AOO) Bugzilla – Issue 107634
Formulas can be changed also in documented documents/sheets
Last modified: 2012-12-06 11:11:12 UTC
Steps to reproduce: 1.) Open a new document. 2.) At field B2, enter the formula "=A2" ("0" is displayed) 3.) Select field B2; Format->Field->Field protection->Protected should be activated (default) 4.) Select fields A2 and A3; Format->Field->Field protection->Protected should be deactivated 3.) Activate Tools->Protect Document->Document 3.) Activate Tools->Protect Document->Sheet 4.) Save the document 5.) Enter "5" in A2 ("5" is now also displayed in B2) 6.) Select A2 7.) Edit->Cut 8.) Select A3 9.) Edit->Paste The result is that in the field B2 the formula has changed from "=A2" to "=A3". Exactly this should not happen with a protected field!
*** Issue 113806 has been marked as a duplicate of this issue. ***
Checked with AOO 3.4.1 as well as Excel 2010. Behavior is the same in Excel. I don't think this is a bug. You could argue that by preserving the integrity of the formula we did the right thing. Imagine a case where the user inserted a new row above row 2. That would also cause the formulas to be rewritten. That's just how a spreadsheet works. The behaviors related to cell references don't change just because cell protection is enabled. In other words, referential integrity is one of the things we need to protect.
Verified on Aoo_Trunk_20121203.1303 Rev.1413470, follow the steps of this bug, The result is that in the field B2 the formula has changed from "=A2" to "=A3". which is the same as that in Ms Excel, so I agree it is not a bug.
close it.