[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Nov 21 21:13:47 PST 2011


 sc/source/core/tool/scmatrix.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 0146b05aad4385a31bd7ae8aaed0dd29d666d131
Author: Kohei Yoshida <kohei.yoshida at suse.com>
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);


More information about the Libreoffice-commits mailing list