summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-09-07 20:31:21 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-15 12:17:41 +0100
commit7dc6fd3908f752c3552dfe34b1a3da6e485b5fd5 (patch)
treee4b23f1464e1848540ab08a648442b6278da70d6
parent6b30907a926890f835c094a5afdf4c0e6d8a1d19 (diff)
some formatting improvements
Change-Id: I77f0fdea3c33fded1ed1a00d3a602a5902a6a0b3
-rw-r--r--sc/source/core/tool/interpr5.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx
index f8733614c095..1f2e4a165e0e 100644
--- a/sc/source/core/tool/interpr5.cxx
+++ b/sc/source/core/tool/interpr5.cxx
@@ -1282,16 +1282,17 @@ void ScInterpreter::CalculateAddSub(bool _bSub)
pResMat->PutDouble( _bSub ? ::rtl::math::approxSub( fVal, pMat->GetDouble(i)) : ::rtl::math::approxAdd( pMat->GetDouble(i), fVal), i);
else
pResMat->PutString(mrStrPool.intern(ScGlobal::GetRscString(STR_NO_VALUE)), i);
- } // for ( SCSIZE i = 0; i < nCount; i++ )
- } // if (bFlag || !_bSub )
+ }
+ }
else
{
for ( SCSIZE i = 0; i < nCount; i++ )
- { if (pMat->IsValue(i))
+ {
+ if (pMat->IsValue(i))
pResMat->PutDouble( ::rtl::math::approxSub( pMat->GetDouble(i), fVal), i);
else
pResMat->PutString(mrStrPool.intern(ScGlobal::GetRscString(STR_NO_VALUE)), i);
- } // for ( SCSIZE i = 0; i < nCount; i++ )
+ }
}
PushMatrix(pResMat);
}