From 38b87bbb24c1d1cc088d3d135e7e95b3ec75d386 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 2 Mar 2018 21:38:08 +0100 Subject: Resolves: tdf#116149 handle external references in VAR* and STDEV* functions Change-Id: I644a5f8f92452ca775ee3b42a73d3f0a0ac3c623 --- sc/source/core/tool/interpr1.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sc/source') diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 632d16c49b32..1722ececce25 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -3930,9 +3930,11 @@ void ScInterpreter::GetStVarParams( bool bTextAsZero, double(*VarResult)( double } } break; + case svExternalSingleRef : + case svExternalDoubleRef : case svMatrix : { - ScMatrixRef pMat = PopMatrix(); + ScMatrixRef pMat = GetMatrix(); if (pMat) { SCSIZE nC, nR; -- cgit