From daaf101ffe683eb691418ec2df4adc260d7e6a15 Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Mon, 7 May 2018 12:49:22 +0200 Subject: lok: sc: formulas were not updated correctly this patch fixes several issues: - any cell containing a formula above row 1024 causing a tile invalidation whenever any cell content was changed, even if unrelated to the formula; - any formula below row 1024 wasn't updated even if it was inside the visible area. Change-Id: Ib92153d5755c4e231aa68dee807fe997f9e80a46 Reviewed-on: https://gerrit.libreoffice.org/53935 Tested-by: Jenkins Reviewed-by: Jan Holesovsky --- sc/source/ui/view/gridwin4.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sc/source/ui/view/gridwin4.cxx') diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 32fe801027c5..595b7a325d28 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -1217,6 +1217,10 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice, DrawContent(rDevice, aTabInfo, aOutputData, true); rDevice.SetMapMode(aOriginalMode); + + // Flag drawn formula cells "unchanged". + pDoc->ResetChanged(ScRange(nTopLeftTileCol, nTopLeftTileRow, nTab, nBottomRightTileCol, nBottomRightTileRow, nTab)); + pDoc->PrepareFormulaCalc(); } void ScGridWindow::LogicInvalidate(const tools::Rectangle* pRectangle) -- cgit