summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-11-01 17:08:19 +0100
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-01 15:58:24 -0400
commit30e4e8c2a7d9caa2e40193baa195891e662a2242 (patch)
treebcee407850d78ae043c79a5f4a6802f5d98ca9b5
parent95da84dbcaf118f9b1ec65444198d70bf7459045 (diff)
boolean values are valid for matrix evaluation (fdo#49967)
-rw-r--r--sc/source/core/tool/scmatrix.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index 9470e76a0886..6044003ccb94 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -732,7 +732,7 @@ bool EvalMatrix(const MatrixImplType& rMat)
for (size_t j = 0; j < nCols; ++j)
{
matrix_element_t eType = rMat.get_type(i, j);
- if (eType != mdds::element_numeric && eType == mdds::element_boolean)
+ if (eType != mdds::element_numeric && eType != mdds::element_boolean)
// assuming a CompareMat this is an error
return CreateDoubleError(errIllegalArgument);