diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2019-10-22 13:15:02 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2019-10-22 12:16:16 +0200 |
commit | f1379133177b2c157019913d2fcdb075859adeb6 (patch) | |
tree | 954257e33640d6821a723c56800c2c44d11ec417 /sc | |
parent | cde9b22a9225801d58ed0ab56fbd065f4e51eb92 (diff) |
Ensure all formula-groups in the collection are threadable.
When doing a multi-formula-group threading, add the missing check
that all of the groups are themselves threadable.
This was caught by crashtest document of tdf#77970.
Change-Id: I42b83ef99ba30909df2b6d8c09d933916784844b
Reviewed-on: https://gerrit.libreoffice.org/81307
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 9eb36602d319..fafccf9dc769 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -4713,6 +4713,9 @@ static SCCOL lcl_probeLeftOrRightFGs(const ScFormulaCellGroupRef& xGroup, const if (!xNGroup) break; + if (!pCell->GetCode()->IsEnabledForThreading()) + break; + if (xNGroup->mpTopCell->aPos.Row() != aAddr.Row()) break; |