diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-09-09 15:32:25 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-09-10 11:47:45 -0400 |
commit | 6dd0d051e986b868bf2225c16137e72d6e2dd3b6 (patch) | |
tree | d46a79ac013cc1c3418f6411f92f98c01f211b52 /sc/source/core/data/column2.cxx | |
parent | d1c90e929ef765b0d88a8d1e0bda434a1e340bee (diff) |
Do the same for range vector tokens.
Change-Id: Id80f76dbe575fc6b279dafbfc524a9230755ddc8
Diffstat (limited to 'sc/source/core/data/column2.cxx')
-rw-r--r-- | sc/source/core/data/column2.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 5f7f8437bc13..34ecbb2f79f7 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -2268,8 +2268,10 @@ formula::VectorRefArray ScColumn::FetchVectorRefArray( sc::FormulaGroupContext& { if (nLenRequested <= nLen) { - // Fill the whole length with zero. - rCxt.maNumArrays.push_back(new sc::FormulaGroupContext::NumArrayType(nLenRequested, 0.0)); + // Fill the whole length with NaN's. + double fNan; + rtl::math::setNan(&fNan); + rCxt.maNumArrays.push_back(new sc::FormulaGroupContext::NumArrayType(nLenRequested, fNan)); return formula::VectorRefArray(&rCxt.maNumArrays.back()[0]); } |