summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-09 23:33:38 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-10 07:25:22 +0200
commit92207231c3742873ad3b3a6fed2963d1bf924ad3 (patch)
treec0a62dae818f14b5562908bfb4da06ad08f92c99 /sc
parent101c9610d79e4cbdd346c489bb3ac74c5f3fd620 (diff)
the last element is in the next block
Change-Id: I3a4806fcae7b830e71cda0ab7e6d5ac6f180d4d3
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column2.cxx2
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;