diff options
author | Eike Rathke <erack@redhat.com> | 2018-07-17 12:58:30 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-07-17 17:19:13 +0200 |
commit | bd3baf8dab6c5b8865a33136cc28a016e6ee6afb (patch) | |
tree | 2956ce6d7c84f93b9e18d9075f00156958a4b2c4 | |
parent | 28aa5b950a0db9242ce350704cd443c4c6a05fd5 (diff) |
OOXML import: CalcFormulaTree() is unnecessary, tdf#94925 follow-up
View will trigger recalc of dirty cells, or anything else
accessing formula cell results, so we can avoid a worst case full
blown recalc.
Change-Id: Ic94c3520358a817614ec730f3471368303e34d2e
Reviewed-on: https://gerrit.libreoffice.org/57551
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | sc/source/filter/oox/workbookfragment.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx index 330dcb073b2d..162fb3812201 100644 --- a/sc/source/filter/oox/workbookfragment.cxx +++ b/sc/source/filter/oox/workbookfragment.cxx @@ -579,7 +579,9 @@ void WorkbookFragment::recalcFormulaCells() else { getDocImport().broadcastRecalcAfterImport(); - rDoc.CalcFormulaTree(false, true, false); + // Full ScDocument::CalcFormulaTree() of all dirty cells is not + // necessary here, the View will recalculate them in the visible area, + // or any other method accessing formula cell results. } } |