From 372c7b231c2d75f6d9bade63cd1b980a84391d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 1 Sep 2022 13:52:26 +0200 Subject: [PATCH] use forced Calc calculation type even for single rows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's for testing/debugging, so this should not get optimized. Change-Id: Ib72eaa8ddb2c49ceee051856d977e2393bbb6966 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139173 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- sc/source/core/data/formulacell.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 7e0400514122..0bad3e6b73d1 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -4664,7 +4664,7 @@ bool ScFormulaCell::InterpretFormulaGroup(SCROW nStartOffset, SCROW nEndOffset) nEndOffset = nMaxOffset; } - if (nEndOffset == nStartOffset) + if (nEndOffset == nStartOffset && forceType == ForceCalculationNone) return false; // Do not use threads for a single row. // Guard against endless recursion of Interpret() calls, for this to work