summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei <kohei.yoshida@collabora.com>2017-04-28 20:12:51 -0400
committerKohei Yoshida <libreoffice@kohei.us>2017-04-30 03:06:35 +0200
commitaca48f46895811009ec90665d816ef835f0694be (patch)
tree301b4e33c967b2a94b39da473805a536c4f2355b /sc
parent3264a7a924c6522d39185508bd3d94b99ff0a615 (diff)
Let's be more specific about the threshold etc.
Change-Id: Iaa644b38775477f8f6f329ab55d9d32414ee0738 Reviewed-on: https://gerrit.libreoffice.org/37089 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/formulacell.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 2088b007df7c..d1058fe4a7cb 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -4088,7 +4088,12 @@ bool ScFormulaCell::InterpretFormulaGroup()
if (GetWeight() < ScInterpreter::GetGlobalConfig().mnOpenCLMinimumFormulaGroupSize)
{
mxGroup->meCalcState = sc::GroupCalcDisabled;
- aScope.addMessage("group length below minimum threshold");
+ std::ostringstream os;
+ os << "group length below minimum threshold ("
+ << GetWeight()
+ << " < " << ScInterpreter::GetGlobalConfig().mnOpenCLMinimumFormulaGroupSize
+ << ")";
+ aScope.addMessage(OUString::createFromAscii(os.str().data()));
return false;
}