summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-03-04 22:03:46 +0100
committerEike Rathke <erack@redhat.com>2016-03-04 22:31:15 +0100
commite0331002d39244cf9c8944fe291d1d009f919eb5 (patch)
tree460b6510f3c126467fb8801b2c90ef918fd1d3da /sc
parent5f164b6e01496655ee0616e16d251e066d99ea73 (diff)
do the calculation check only conditionally, tdf#91794 follow-up
... not in all debug builds. Change-Id: I6f53c6c6860ee00b740484ed31317d5e58922082
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 0bfb0fec74d5..8b2e3a60750e 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -2790,15 +2790,16 @@ struct SetDirtyIfPostponedHandler
struct CalcAllHandler
{
+#define DEBUG_SC_CHECK_FORMULATREE_CALCULATION 0
void operator() (size_t /*nRow*/, ScFormulaCell* pCell)
{
-#if OSL_DEBUG_LEVEL > 0
+#if DEBUG_SC_CHECK_FORMULATREE_CALCULATION
// after F9 ctrl-F9: check the calculation for each FormulaTree
double nOldVal, nNewVal;
nOldVal = pCell->GetValue();
#endif
pCell->Interpret();
-#if OSL_DEBUG_LEVEL > 0
+#if DEBUG_SC_CHECK_FORMULATREE_CALCULATION
if (pCell->GetCode()->IsRecalcModeNormal())
nNewVal = pCell->GetValue();
else
@@ -2807,6 +2808,7 @@ struct CalcAllHandler
assert(nOldVal == nNewVal);
#endif
}
+#undef DEBUG_SC_CHECK_FORMULATREE_CALCULATION
};
class CompileAllHandler