summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-01-07 11:53:12 +0200
committerTor Lillqvist <tml@collabora.com>2014-01-07 11:53:24 +0200
commit49bc2ac28fed51425f257558db4ed1e9c3522e6f (patch)
tree274fc138ecbac90922aec77af77ab2bb92b0c520
parent3c37db6db90564431ebaf85afef1d8c30ddd8f61 (diff)
Add some more logging
Change-Id: I637c365626242142a0f6fc0ac002fa9dd5f1340a
-rw-r--r--sc/source/core/data/formulacell.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index c15710fa8ed8..531c7e54d4fe 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -3501,13 +3501,15 @@ bool ScFormulaCell::InterpretFormulaGroup()
aTopPos.SetRow(mxGroup->mpTopCell->aPos.Row());
ScGroupTokenConverter aConverter(aCode, *pDocument, *this, mxGroup->mpTopCell->aPos);
if (!aConverter.convert(*pCode))
- {
- mxGroup->meCalcState = sc::GroupCalcDisabled;
- return false;
- }
+ {
+ SAL_INFO("sc.opencl", "conversion of group " << this << " failed, disabling");
+ mxGroup->meCalcState = sc::GroupCalcDisabled;
+ return false;
+ }
mxGroup->meCalcState = sc::GroupCalcRunning;
if (!sc::FormulaGroupInterpreter::getStatic()->interpret(*pDocument, mxGroup->mpTopCell->aPos, mxGroup, aCode))
{
+ SAL_INFO("sc.opencl", "interpreting group " << mxGroup << " (state " << mxGroup->meCalcState << ") failed, disabling");
mxGroup->meCalcState = sc::GroupCalcDisabled;
return false;
}
@@ -3517,10 +3519,11 @@ bool ScFormulaCell::InterpretFormulaGroup()
{
ScTokenArray aDummy;
if (!sc::FormulaGroupInterpreter::getStatic()->interpret(*pDocument, mxGroup->mpTopCell->aPos, mxGroup, aDummy))
- {
- mxGroup->meCalcState = sc::GroupCalcDisabled;
- return false;
- }
+ {
+ SAL_INFO("sc.opencl", "interpreting group " << mxGroup << " (state " << mxGroup->meCalcState << ") failed, disabling");
+ mxGroup->meCalcState = sc::GroupCalcDisabled;
+ return false;
+ }
}
return true;