summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-30 11:25:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-30 13:06:15 +0100
commita15c38aa4e4ec66c5d74c026c7583188bff98ca9 (patch)
tree927c9533561338dc3c04b44b97421927230772d2 /svx
parent71507ba3eb4bc6e8b36cd66b865c49a1b66b787e (diff)
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@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdhdl.cxx4
1 files changed, 3 insertions, 1 deletions
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)
{