sd/source/ui/docshell/docshel2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 59c73b8da8400f9504fd4fa37c10c09c9397ff59 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sun Feb 10 17:02:40 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Sun Feb 17 16:51:26 2019 +0100 Use indexed getToken() Change-Id: I28d1a4f5a32bbe6e2278e9694c85d9a72dde8a23 Reviewed-on: https://gerrit.libreoffice.org/67650 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx index f59499825d0d..224c7f2aeb50 100644 --- a/sd/source/ui/docshell/docshel2.cxx +++ b/sd/source/ui/docshell/docshel2.cxx @@ -318,7 +318,8 @@ bool DrawDocShell::IsNewPageNameValid( OUString & rInOutPageName, bool bResetStr if (rInOutPageName.startsWith(aStrPage) && rInOutPageName.getLength() > aStrPage.getLength()) { - OUString sRemainder = rInOutPageName.getToken(1, ' '); + sal_Int32 nIdx{ aStrPage.getLength() }; + OUString sRemainder = rInOutPageName.getToken(0, ' ', nIdx); if (sRemainder[0] >= '0' && sRemainder[0] <= '9') { // check for arabic numbering _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits