diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index fc53dab92f52..5e490bdccf85 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -1457,7 +1457,7 @@ void ScColumn::CopyCellTextAttrsToDocument(SCROW nRow1, SCROW nRow2, ScColumn& r itDataEnd = sc::custom_celltextattr_block::end(*itBlk->data); std::advance(itData, nOffsetInBlock); - if (nBlockStart <= nRowPos && nRowPos <= nBlockEnd) + if (nBlockStart <= nRowPos && nRowPos < nBlockEnd) { // This block contains the end row. Only copy partially. size_t nOffset = nRowPos - nBlockStart + 1; |