[Libreoffice-commits] core.git: sc/source

Kohei kohei.yoshida at collabora.com
Sun Apr 30 01:07:12 UTC 2017


 sc/source/core/data/formulacell.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit aca48f46895811009ec90665d816ef835f0694be
Author: Kohei <kohei.yoshida at collabora.com>
Date:   Fri Apr 28 20:12:51 2017 -0400

    Let's be more specific about the threshold etc.
    
    Change-Id: Iaa644b38775477f8f6f329ab55d9d32414ee0738
    Reviewed-on: https://gerrit.libreoffice.org/37089
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Kohei Yoshida <libreoffice at kohei.us>

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;
     }
 


More information about the Libreoffice-commits mailing list