Kaydet (Commit) 15cf5afe authored tarafından Kohei Yoshida's avatar Kohei Yoshida

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
üst 2e614e9d
...@@ -2244,6 +2244,7 @@ const double* ScColumn::FetchDoubleArray( sc::FormulaGroupContext& rCxt, SCROW n ...@@ -2244,6 +2244,7 @@ const double* ScColumn::FetchDoubleArray( sc::FormulaGroupContext& rCxt, SCROW n
rArray.reserve(nLenRequested); rArray.reserve(nLenRequested);
sc::formula_block::const_iterator it = sc::formula_block::begin(*aPos.first->data); sc::formula_block::const_iterator it = sc::formula_block::begin(*aPos.first->data);
std::advance(it, aPos.second);
sc::formula_block::const_iterator itEnd; sc::formula_block::const_iterator itEnd;
if (nLenRequested <= nLen) if (nLenRequested <= nLen)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment