summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-12 15:11:19 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-12 22:58:40 -0400
commit15cf5afea05f0539035a1393b3150121489eb561 (patch)
treee061fb43243cb48c1799a3963c272717e1c3dc89
parent2e614e9d01a5e00506b14ecf0588e01d4d5716e3 (diff)
Don't forget to shift to the right start element within the block!
Else it would always start from element one of the block regardless of the requested start row position. Change-Id: I3843eab2a88b8361250346e3f9696be5086039ea
-rw-r--r--sc/source/core/data/column2.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 7b38918c099b..8695581643b8 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -2244,6 +2244,7 @@ const double* ScColumn::FetchDoubleArray( sc::FormulaGroupContext& rCxt, SCROW n
rArray.reserve(nLenRequested);
sc::formula_block::const_iterator it = sc::formula_block::begin(*aPos.first->data);
+ std::advance(it, aPos.second);
sc::formula_block::const_iterator itEnd;
if (nLenRequested <= nLen)
{