summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdhdl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdhdl.cxx')
-rw-r--r--svx/source/svdraw/svdhdl.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx
index 2c1ee22a064c..7dc05bc1a086 100644
--- a/svx/source/svdraw/svdhdl.cxx
+++ b/svx/source/svdraw/svdhdl.cxx
@@ -2063,10 +2063,9 @@ void SdrHdlList::TravelFocusHdl(bool bForward)
if(nOldHdlNum != nNewHdlNum)
{
mnFocusIndex = nNewHdlNum;
- SdrHdl* pNew = GetHdl(mnFocusIndex);
-
- if(pNew)
+ if (mnFocusIndex < GetHdlCount())
{
+ SdrHdl* pNew = GetHdl(mnFocusIndex);
pNew->Touch();
}
}