Apache OpenOffice (AOO) Bugzilla – Issue 104769
Chart from xls doc fails to update on value change.
Last modified: 2013-08-07 15:14:47 UTC
When loading an xls document with embedded chart into Calc, Calc fails to update the chart on value change, when the source data consists of formula cells outside the visible area. I'll attach a test document to demonstrate the problem.
Created attachment 64534 [details] test document
The chart in the document references cell A100 for its data, which is a formula cell that in turn references cell A1. Change the value of A1, chart doesn't get updated. Now, scroll down so that cell A100 is visible, then scroll it back up to cell A1, then change the value of A1. This time, chart gets updated.
We have a fix for this on Go-OO. I'll port the fix to kohei03 cws, hopefully for 3.2.
fixed this in kohei03 cws: http://hg.services.openoffice.org/hg/cws/kohei03/rev/9de860ec875a
With the change to SetDirtyAfterLoad, the additional chart listener seems unnecessary. But we have to check if setting the bDirty flag really isn't needed in all cases.
See also issue 104899, which is somewhat related (it's not the same - there the formulas still have their initial dirty state if row heights aren't updated).
I've reverted the change related to the dirty flag in ScFormulaCell, since it was not related to this fix. http://hg.services.openoffice.org/cws/kohei03/rev/c5d669ab8749
re-assigning for qa verification.
http://hg.services.openoffice.org/hg/cws/kohei03/rev/74bfd1f248be Ok. My previous fix was insufficient. I made the above change to fix this for real.
Seen ok in cws kohei03 -> verified
ok in DEV300m77, issue closing
This fix doesn't always work, see issue 112436.