summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-03-19 17:04:08 +0000
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-19 13:40:27 -0400
commit42d3adbce63493039e6013f6f3ea15149f2f7507 (patch)
treef06f2b468affaeb6d96de68d7f80086a65ac7bcc /sc/source
parent20c4921e901d84a7ef8835ee192e1a7a4b62ee61 (diff)
calm debug, and disable unless SC_FORMULAGROUP=1
Change-Id: I091d43dfa33f440edd50a1c937ef6e6f1930be4e
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/cell2.cxx8
-rw-r--r--sc/source/core/data/column3.cxx2
-rw-r--r--sc/source/core/data/documen9.cxx5
3 files changed, 10 insertions, 5 deletions
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx
index 0724501d2b63..5bd38466b13b 100644
--- a/sc/source/core/data/cell2.cxx
+++ b/sc/source/core/data/cell2.cxx
@@ -1748,7 +1748,7 @@ ScSimilarFormulaDelta *ScFormulaCell::BuildDeltaTo( ScFormulaCell *pOtherCell )
if ( !pThis || !pOther )
{
- fprintf( stderr, "Error: no compiled code for cells !" );
+// fprintf( stderr, "Error: no compiled code for cells !" );
return NULL;
}
@@ -1817,12 +1817,12 @@ bool ScFormulaCell::InterpretFormulaGroup()
if( !xGroup.get() )
return false;
- fprintf( stderr, "Interpret cell %d, %d\n", (int)aPos.Col(), (int)aPos.Row() );
+// fprintf( stderr, "Interpret cell %d, %d\n", (int)aPos.Col(), (int)aPos.Row() );
if ( xGroup->mpDelta->IsInvariant() )
{
- fprintf( stderr, "struck gold - completely invariant for %d items !\n",
- (int)xGroup->mnLength );
+// fprintf( stderr, "struck gold - completely invariant for %d items !\n",
+// (int)xGroup->mnLength );
// calculate ourselves:
InterpretTail( SCITP_NORMAL );
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 439783456d1c..c4c4ec6ec9e9 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -2119,7 +2119,7 @@ void ScColumn::RebuildFormulaGroups()
}
}
-#if 1 // OSL_DEBUG_LEVEL > 0
+#if OSL_DEBUG_LEVEL > 0
if ( maDoubles.size() + maFnGroups.size() > 0 )
{
rtl::OUString aStr;
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index 4a261e8e9006..54e3a08547cd 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -697,6 +697,11 @@ void ScDocument::ApplyAsianEditSettings( ScEditEngineDefaulter& rEngine )
void ScDocument::RebuildFormulaGroups()
{
+ static const char *pEnableFormulaGroups = getenv("SC_FORMULAGROUP");
+
+ if ( !pEnableFormulaGroups )
+ return;
+
SCTAB nTab;
for (nTab=0; nTab < static_cast<SCTAB>(maTabs.size()); nTab++)
if (maTabs[nTab])