diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2016-10-02 20:41:53 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2016-10-03 17:52:19 -0400 |
commit | 191e0258427f2209f21384b4e4c685efda24ac03 (patch) | |
tree | e749c8cc23799e12340480da5adb75ba508ba9d7 | |
parent | f7e01c583440c06f5f4a735790e3a22237a1b84f (diff) |
Reverse the boolean logic.
To have the 'true' value associate with action and 'false' with
inaction.
Change-Id: Icf61b1cb8642a72390d1f2aa45ca25fb67ec0dbd
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index cb4bb4de5340..917fcd4d9b65 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -1292,7 +1292,7 @@ void ScFormulaCell::CompileXML( sc::CompileFormulaContext& rCxt, ScProgress& rPr // pCode may not deleted for queries, but must be empty pCode->Clear(); - bool bSkipCompile = false; + bool bDoCompile = true; if ( !mxGroup && aFormulaNmsp.isEmpty() ) // optimization { @@ -1328,7 +1328,7 @@ void ScFormulaCell::CompileXML( sc::CompileFormulaContext& rCxt, ScProgress& rPr if (bSubTotal) pDocument->AddSubTotalCell(this); - bSkipCompile = true; + bDoCompile = false; pCode = pPreviousCell->pCode; if (pPreviousCell->mbIsExtRef) pDocument->GetExternalRefManager()->insertRefCellFromTemplate( pPreviousCell, this ); @@ -1339,7 +1339,7 @@ void ScFormulaCell::CompileXML( sc::CompileFormulaContext& rCxt, ScProgress& rPr } } - if (!bSkipCompile) + if (bDoCompile) { ScTokenArray* pCodeOld = pCode; pCode = aComp.CompileString( aFormula, aFormulaNmsp ); |