summaryrefslogtreecommitdiff
path: root/sc/source/core/data/cell.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-07-17 15:55:38 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-07-19 14:05:11 -0400
commitd3629a3942b681fcff006967c50394b3a9c344ee (patch)
treedb2d942f7c334ce0b2180caf47361ec356e2b4be /sc/source/core/data/cell.cxx
parentd13804609737114f30dbc7580e4bc76e66cb02a8 (diff)
It's no longer possible to unionize value and string here...
Thereby leaving a note to discourage use of ScMatrixValue. Incidentally, now all the unit test passes. Change-Id: I5d12f8ab654f985ef43b887a22abb6de45fea1fc
Diffstat (limited to 'sc/source/core/data/cell.cxx')
-rw-r--r--sc/source/core/data/cell.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 6ab3d2d1c01a..0e34b3510ccb 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -1926,11 +1926,11 @@ void ScFormulaCell::GetURLResult( rtl::OUString& rURL, rtl::OUString& rCellText
if (xMat)
{
// determine if the matrix result is a string or value.
- ScMatrixValue nMatVal = xMat->Get(0, 1);
- if (!ScMatrix::IsValueType( nMatVal.nType))
- rURL = nMatVal.GetString();
+ if (!xMat->IsValue(0, 1))
+ rURL = xMat->GetString(0, 1);
else
- pFormatter->GetOutputString( nMatVal.fVal, nURLFormat, rURL, &pColor );
+ pFormatter->GetOutputString(
+ xMat->GetDouble(0, 1), nURLFormat, rURL, &pColor);
}
if(rURL.isEmpty())