summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 10:19:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 11:53:58 +0100
commit004cc81168ce4e9f9b2f8fddf3361f8c23323673 (patch)
tree16c7009a3fac88766214ff073cab5562555a2f3a /formula
parent2429c626b4ae5efcd2edf47dabf4add6a7384dff (diff)
loplugin:collapseif in dbaccess..lotuswordpro
Change-Id: Ia2a0d25c3833dfde0cd28337361f3cbd2aa29662 Reviewed-on: https://gerrit.libreoffice.org/62934 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 09ac290d43af..b0938aa630be 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -2101,11 +2101,8 @@ bool FormulaCompiler::CompileTokenArray()
FormulaToken** pData = pDataArray + 1;
pCode = pData;
bool bWasForced = pArr->IsRecalcModeForced();
- if ( bWasForced )
- {
- if ( bAutoCorrect )
- aCorrectedFormula = "=";
- }
+ if ( bWasForced && bAutoCorrect )
+ aCorrectedFormula = "=";
pArr->ClearRecalcMode();
maArrIterator.Reset();
eLastOp = ocOpen;