summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-06-15 20:49:31 +0200
committerEike Rathke <erack@redhat.com>2016-06-15 21:06:03 +0200
commit68455c20cb5edf2bfc57243b44fc81b7fa5ea5db (patch)
tree5d355de058d4d1b0f6343fa08177b19e295cd435 /sc
parentf219bd4c3599e0933760f8a9f0155fc97a9ab23c (diff)
set string conversion error also at interpreter if available
Change-Id: Idedb9192938a01ecfda3dd93e69c16a896801fd7
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/scmatrix.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index 59787d979b82..713300417d62 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -77,7 +77,10 @@ double convertStringToValue( ScInterpreter* pErrorInterpreter, const OUString& r
short nCurFmtType = 0;
double fValue = pErrorInterpreter->ConvertStringToValue( rStr, nError, nCurFmtType);
if (nError)
+ {
+ pErrorInterpreter->SetError( nError);
return formula::CreateDoubleError( nError);
+ }
return fValue;
}
return formula::CreateDoubleError( formula::errNoValue);