summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-03-13 10:22:25 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-03-13 10:24:39 -0400
commitc078d5fef98ba77751b7a9593691d88dfc1c9ba1 (patch)
tree1b03b2451f668c329bdd01b4d2a4848fcb5067d3 /sc
parente5802954853a9ec64fb5fec917f8c3b2daba6526 (diff)
fdo#75642: Check the high position block correctly.
Change-Id: I25deabf69e78c6e0354e8a528ab88891a30f9aec
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dociter.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index 481796c10033..3a1e7d903cbc 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -1538,7 +1538,9 @@ public:
// Move to the last position of the previous block.
decBlock(aHiPos);
- if (aHiPos.first == mrCells.begin())
+ // Check the row postion of the end of the previous block, and make sure it's valid.
+ SCROW nBlockEndRow = aHiPos.first->position + aHiPos.first->size - 1;
+ if (nBlockEndRow < nStartRow)
{
mbValid = false;
return;