summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-07-11 14:20:37 +0200
committerEike Rathke <erack@redhat.com>2016-07-11 14:24:53 +0200
commit89a5464a21046821648ec77f03db8316ceb4e6f8 (patch)
tree99e329b83e7ec9b61d22787e9cabad133912f383 /sc
parent3849758adc0592327568ff465ccf255786632b4b (diff)
Resolves: tdf#100847 also external svEmptyCell is 0 in numeric context
Regression of 243f19a1878d52a4074b59041dc3bc57ab84e417 that now differentiates between numeric and string content of external references' cells. Change-Id: I7a9635357cc7651353067a38f9ac8bc295f88546
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index 685b9ac851e0..db8ac5db8346 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -2043,7 +2043,7 @@ double ScInterpreter::GetDouble()
PopExternalSingleRef(pToken);
if (!nGlobalError)
{
- if (pToken->GetType() == svDouble)
+ if (pToken->GetType() == svDouble || pToken->GetType() == svEmptyCell)
nVal = pToken->GetDouble();
else
nVal = ConvertStringToValue( pToken->GetString().getString());