summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/scmatrix.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/tool/scmatrix.cxx')
-rw-r--r--sc/source/core/tool/scmatrix.cxx4
1 files changed, 2 insertions, 2 deletions
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