[Libreoffice-commits] core.git: sw/source
Julien Nabet
serval2412 at yahoo.fr
Sun Jul 23 18:48:49 UTC 2017
sw/source/core/layout/pagedesc.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4f3ce1233cfdeb8e159b5c68858167fc586f734b
Author: Julien Nabet <serval2412 at 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 <serval2412 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at 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]))
{
More information about the Libreoffice-commits
mailing list