diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr5.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/scmatrix.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx index 0d5f907cddb8..aa425b39aa47 100644 --- a/sc/source/core/tool/interpr5.cxx +++ b/sc/source/core/tool/interpr5.cxx @@ -1286,7 +1286,7 @@ void ScInterpreter::CalculateAddSub(bool _bSub) } else { - pMat->SubAddOp(true, fVal, aString, *pResMat); + pMat->SubAddOp(false, -fVal, aString, *pResMat); } PushMatrix(pResMat); } diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index bf2f1632b6d2..4402002593f6 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -2553,12 +2553,12 @@ public: double operator()(double nVal) const { - return nVal - mnVal; + return mnVal - nVal; } double operator()(bool bVal) const { - return (double)bVal - mnVal; + return mnVal - (double)bVal; } svl::SharedString operator()(const svl::SharedString&) const |