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 12:27:52 -0400
commit68b5341c063fde933a347db6104c0df774d9ab26 (patch)
treea89cf24c4b2161161789a519ccfc3b9a2eee75de
parente6c3ff17ced2aa004eda5ab3a52bc26d4fea74b7 (diff)
boolean values are valid for matrix evaluation (fdo#49967)
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
-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 fcdf412c1..ac1c7a41f 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -733,7 +733,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);