diff options
author | Eike Rathke <erack@redhat.com> | 2015-08-18 11:33:44 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-08-18 11:37:30 +0200 |
commit | f7e493229bd949066b4d8984dce7678b8687d1ae (patch) | |
tree | 9f318dc0783391d9a46a1680a893c21e2efb98b0 /sc/source/core | |
parent | a962d699b044ee1688e914873c72337fa6217619 (diff) |
Resolves: tdf#92749 invalidate lookup caches after initial hard recalc
... because the caches are not setup as listeners during when the
document's hard recalc state is active.
Change-Id: Ie7ec84ee64d046e3e55ce26b92824e94a2f660e9
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/document.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 7943fa5e1619..b0b3aa3db2a8 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -3780,6 +3780,14 @@ void ScDocument::CalcAll() if (*it) (*it)->CalcAll(); ClearFormulaTree(); + + // In hard recalc state caches were not added as listeners, invalidate them + // so the next non-CalcAll() normal lookup will not be presented with + // outdated data. + /* TODO: come up with more detailed hard recalc states so we can + * differentiate between hard recalc after load and others. */ + if (GetHardRecalcState()) + ClearLookupCaches(); } void ScDocument::CompileAll() |