[Libreoffice-commits] .: Branch 'feature/calc-matrix-rework' - sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Thu Dec 16 17:55:00 PST 2010


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

New commits:
commit c5b955edf2e8b6a6f3d0a492dbbeb5684e6a69bb
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Thu Dec 16 20:54:43 2010 -0500

    Empty element is expected to have a value of zero.

diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index e67e067..9387bf5 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -517,8 +517,11 @@ ScMatrixValue ScMatrixImpl::Get(SCSIZE nC, SCSIZE nR) const
                 aVal.pS = maMat.get_string(nR, nC);
             break;
             case mdds::element_empty:
+                // TODO: Check for the flag value to differentiate from empty path.
+                aVal.nType == SC_MATVAL_EMPTY;
+                aVal.fVal = 0.0;
             default:
-                ; // no action is needed for an empty element.
+                ;
         }
     }
     else


More information about the Libreoffice-commits mailing list