summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/inc/formulacell.hxx2
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx1
-rw-r--r--sc/source/core/data/formulacell.cxx5
3 files changed, 7 insertions, 1 deletions
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index 231789f2923e..ae3db89c120f 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -276,7 +276,7 @@ public:
void SetResultToken( const formula::FormulaToken* pToken );
- double GetResultDouble() const { return aResult.GetDouble(); }
+ double GetResultDouble() const;
void SetErrCode( sal_uInt16 n );
bool IsHyperLinkCell() const;
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 8d27a75f9d6b..1a80e077c3af 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -41,6 +41,7 @@
#include "markdata.hxx"
#include "colorscale.hxx"
#include "olinetab.hxx"
+#include "patattr.hxx"
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 0616accf0c63..0fe26322e42f 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -1603,6 +1603,11 @@ void ScFormulaCell::SetResultToken( const formula::FormulaToken* pToken )
aResult.SetToken(pToken);
}
+double ScFormulaCell::GetResultDouble() const
+{
+ return aResult.GetDouble();
+}
+
void ScFormulaCell::SetResultMatrix( SCCOL nCols, SCROW nRows, const ScConstMatrixRef& pMat, formula::FormulaToken* pUL )
{
aResult.SetMatrix(nCols, nRows, pMat, pUL);