diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2018-05-07 12:49:22 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-07-09 17:50:19 +0200 |
commit | daaf101ffe683eb691418ec2df4adc260d7e6a15 (patch) | |
tree | d2cdd2d6b826f57f85da070c4aa4d85c68a17b38 /sc/source/ui/view/gridwin4.cxx | |
parent | 08db80ebb4e831d6501ea30de561b175819cc68c (diff) |
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 <kendy@collabora.com>
Diffstat (limited to 'sc/source/ui/view/gridwin4.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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) |