[Libreoffice-commits] core.git: sw/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 23 11:42:29 UTC 2019


 sw/source/core/doc/docedt.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3e74d12e588d1cd382a04bb028f599f1d682069b
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Mon Sep 23 12:08:23 2019 +0200
Commit:     Mike Kaganski <mike.kaganski at 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.kaganski at 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;


More information about the Libreoffice-commits mailing list