Kaydet (Commit) 92207231 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

the last element is in the next block

Change-Id: I3a4806fcae7b830e71cda0ab7e6d5ac6f180d4d3
üst 101c9610
...@@ -1457,7 +1457,7 @@ void ScColumn::CopyCellTextAttrsToDocument(SCROW nRow1, SCROW nRow2, ScColumn& r ...@@ -1457,7 +1457,7 @@ void ScColumn::CopyCellTextAttrsToDocument(SCROW nRow1, SCROW nRow2, ScColumn& r
itDataEnd = sc::custom_celltextattr_block::end(*itBlk->data); itDataEnd = sc::custom_celltextattr_block::end(*itBlk->data);
std::advance(itData, nOffsetInBlock); std::advance(itData, nOffsetInBlock);
if (nBlockStart <= nRowPos && nRowPos <= nBlockEnd) if (nBlockStart <= nRowPos && nRowPos < nBlockEnd)
{ {
// This block contains the end row. Only copy partially. // This block contains the end row. Only copy partially.
size_t nOffset = nRowPos - nBlockStart + 1; size_t nOffset = nRowPos - nBlockStart + 1;
......
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