From 30e4e8c2a7d9caa2e40193baa195891e662a2242 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 1 Nov 2011 17:08:19 +0100 Subject: boolean values are valid for matrix evaluation (fdo#49967) --- sc/source/core/tool/scmatrix.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') 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); -- cgit v1.2.3