[Libreoffice-commits] core.git: svx/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 30 12:06:40 UTC 2018
svx/source/svdraw/svdhdl.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit a15c38aa4e4ec66c5d74c026c7583188bff98ca9
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Oct 30 11:25:20 2018 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Oct 30 13:06:15 2018 +0100
tdf#120997 Crash after Ctrl+Tab to traverse points of object
regression from
commit b4fc996520b47a6212661a9de3a1c72ccfc379a4
loplugin:useuniqueptr in SdrHdlList
Change-Id: I5f7a8d49f0ce359364933db4c35759118846be2d
Reviewed-on: https://gerrit.libreoffice.org/62543
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx
index 3a81b869d89f..2c1ee22a064c 100644
--- a/svx/source/svdraw/svdhdl.cxx
+++ b/svx/source/svdraw/svdhdl.cxx
@@ -1955,7 +1955,9 @@ void SdrHdlList::TravelFocusHdl(bool bForward)
// take care of old handle
const size_t nOldHdlNum(mnFocusIndex);
- SdrHdl* pOld = GetHdl(nOldHdlNum);
+ SdrHdl* pOld = nullptr;
+ if (nOldHdlNum < GetHdlCount())
+ pOld = GetHdl(nOldHdlNum);
if(pOld)
{
More information about the Libreoffice-commits
mailing list