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

New commits:
commit 4f3ce1233cfdeb8e159b5c68858167fc586f734b
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Sun Jul 23 20:02:09 2017 +0200

    cid#1415621: illegal accesses
    
    Change-Id: I89df786f25441aadf3172ce53228c8b465e62e3b
    Reviewed-on: https://gerrit.libreoffice.org/40334
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>
    Tested-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/sw/source/core/layout/pagedesc.cxx 
b/sw/source/core/layout/pagedesc.cxx
index f49e8f8d6e74..13651d275d67 100644
--- a/sw/source/core/layout/pagedesc.cxx
+++ b/sw/source/core/layout/pagedesc.cxx
@@ -377,7 +377,7 @@ SwPageDesc* SwPageDesc::GetByName(SwDoc& rDoc, const 
OUString& rName)
         }
     }
 
-    for (size_t i = 0; i <= SAL_N_ELEMENTS(STR_POOLPAGE); ++i)
+    for (size_t i = 0; i < SAL_N_ELEMENTS(STR_POOLPAGE); ++i)
     {
         if (rName == SwResId(STR_POOLPAGE[i]))
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to