summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-02-09 22:10:24 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-02-10 08:09:53 +0000
commit6a27efa43b2181599fb92ed99061e5b491dfd4a2 (patch)
treead12fc008c249dda0d4e4d5901adf4f3857749d7
parentbac928cf6405c869ab83bc136dac52b037386108 (diff)
fdo#74323: The end position is inclusive.
Change-Id: Ibd0ff19d7fd2de72a3b8d790a371da4b23df38c8 (cherry picked from commit b6378a1651e7157063746d7001ef566545338bd0) Reviewed-on: https://gerrit.libreoffice.org/7961 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/core/data/table1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 4eed3b05ab6c..f958927ce8ef 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -1434,7 +1434,7 @@ bool ScTable::GetNextMarkedCell( SCCOL& rCol, SCROW& rRow, const ScMarkData& rMa
}
}
- if (nTestRow < nEnd)
+ if (nTestRow <= nEnd)
{
// Cell found.
rRow = nTestRow;