Apache OpenOffice (AOO) Bugzilla – Issue 26431
Named cell references not updated after row insertion
Last modified: 2013-08-07 15:15:02 UTC
Any cell containing a reference to another cell by name (e.g. =TEST1) is not updated when a row is inserted before the referenced named cell and when the named value is changed. To reproduce : - Put some value into cell A1 (say 44) and name that cell "TEST1". - Put into cell B1 the formula "=TEST1". The expected value appears : 44. - Select the very first row and insert a new row. - Put into cell TEST1 (which is now in A2) the value 55. B2 doesn't reflect the change and still says 44. Same problem with OOo 1.1.0. Works fine with OOo 1.0.x.
Hi Niklas, confirmed. Frank PS Press CTRL+SHIFT+F9 and you get the correct result
nn->er: See also issue 1843. My guess is that to make direct references and named ranges work with insertion and deletion, we have to change ScFormulaCell::UpdateReference so it only calls EndListening and sets a flag, and call StartListening at the end, after inserting/deleting.
Accepted.
On branch cws_src680_referr: sc/inc/cell.hxx 1.13.84.1 sc/inc/column.hxx 1.9.104.1 sc/inc/table.hxx 1.23.106.1 sc/inc/tokenarray.hxx 1.4.86.1 sc/source/core/data/cell.cxx 1.21.84.1 sc/source/core/data/cell2.cxx 1.20.106.2 sc/source/core/data/column3.cxx 1.12.104.1 sc/source/core/data/document.cxx 1.57.8.1 sc/source/core/data/table2.cxx 1.27.104.1 sc/source/core/tool/token.cxx 1.20.86.1
Reopen to reassign.
Reassign to QA.
Restore status.
reopened for reassigning
Hi Peter, one4you
reset resolution to fixed
works as intended in CWS 'referr' -> verified
OK in master src680m56