sc/source/core/tool/scmatrix.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0146b05aad4385a31bd7ae8aaed0dd29d666d131 Author: Kohei Yoshida <[email protected]> Date: Tue Nov 22 00:13:07 2011 -0500 This is wrong. We should allow both boolean and numeric types. diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index dea2c28..9b79fda 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -114,7 +114,8 @@ void compareMatrix(MatrixImplType& rMat) for (size_t j = 0; j < aDim.second; ++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) + // must be of numeric type (boolean can be numeric). continue; double fVal = rMat.get_numeric(i, j); _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
