sw/source/core/doc/docedt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3e74d12e588d1cd382a04bb028f599f1d682069b Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Mon Sep 23 12:08:23 2019 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Sep 23 13:41:38 2019 +0200 The which ranges are inclusive Change-Id: I3d2d8c08c7abacf7ae4c20b2760efe233eddd4ee Reviewed-on: https://gerrit.libreoffice.org/79393 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx index 5006eeefdae3..46305d27996f 100644 --- a/sw/source/core/doc/docedt.cxx +++ b/sw/source/core/doc/docedt.cxx @@ -347,7 +347,7 @@ static std::vector<sal_uInt16> lcl_RangesToVector(const sal_uInt16 * pRanges) { OSL_ENSURE(pRanges[i+1] != 0, "malformed ranges"); - for (sal_uInt16 j = pRanges[i]; j < pRanges[i+1]; j++) + for (sal_uInt16 j = pRanges[i]; j <= pRanges[i+1]; j++) aResult.push_back(j); i += 2; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits