summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-11 16:36:22 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-13 09:26:29 +0200
commitc688919620fb22e27471d222d99c0599ee0872e7 (patch)
tree319f106c14a3d8d347f311a8f836323b71cb3ef1 /sc
parent52fcfa07078a24fc2229c87f928e2a39ac5635f0 (diff)
a few more fixes for crashes around cell text attr storage
Change-Id: If5d6f4baf49b5828a1765b638eb4d2225f7b5400
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 5e490bdccf85..d25d5ba1c4f8 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1421,7 +1421,7 @@ void ScColumn::CopyCellTextAttrsToDocument(SCROW nRow1, SCROW nRow2, ScColumn& r
for (; itBlk != itBlkEnd; ++itBlk)
{
nBlockEnd = nBlockStart + itBlk->size;
- if (nBlockStart <= nRowPos && nRowPos <= nBlockEnd)
+ if (nBlockStart <= nRowPos && nRowPos < nBlockEnd)
{
// Found.
nOffsetInBlock = nRowPos - nBlockStart;
@@ -1443,7 +1443,7 @@ void ScColumn::CopyCellTextAttrsToDocument(SCROW nRow1, SCROW nRow2, ScColumn& r
if (!itBlk->data)
{
// Empty block.
- if (nBlockStart <= nRowPos && nRowPos <= nBlockEnd)
+ if (nBlockStart <= nRowPos && nRowPos < nBlockEnd)
// This block contains the end row.
rDestCol.maCellTextAttrs.set_empty(nBlockStart + nOffsetInBlock, nRowPos);
else