Kaydet (Commit) d29bcfb0 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Properly return empty string when asked, as it did previosly.

Refactoring of ScMatrix changed this behavior by accident.  Let's
bring back the old behavior.
üst 43fda1a7
......@@ -462,12 +462,15 @@ const String& ScMatrixImpl::GetString(SCSIZE nC, SCSIZE nR) const
{
if (ValidColRowOrReplicated( nC, nR ))
{
if (maMat.get_type(nR, nC) == ::mdds::element_string)
return *maMat.get_string(nR, nC);
else
switch (maMat.get_type(nR, nC))
{
SetErrorAtInterpreter( GetError(nC, nR));
OSL_FAIL("ScMatrixImpl::GetString: access error, no string");
case ::mdds::element_string:
return *maMat.get_string(nR, nC);
case ::mdds::element_empty:
return ScGlobal::GetEmptyString();
default:
SetErrorAtInterpreter( GetError(nC, nR));
OSL_FAIL("ScMatrixImpl::GetString: access error, no string");
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment