diff --git a/svx/source/svdraw/svdpagv.cxx b/svx/source/svdraw/svdpagv.cxx index 6653859fd9d5..3c5632dd6b89 100644 --- a/svx/source/svdraw/svdpagv.cxx +++ b/svx/source/svdraw/svdpagv.cxx @@ -881,7 +881,8 @@ void SdrPageView::DeleteHelpLine(sal_uInt16 nNum) void SdrPageView::InsertHelpLine(const SdrHelpLine& rHL, sal_uInt16 nNum) { - if (nNum>aHelpLines.GetCount()) nNum=aHelpLines.GetCount(); + if (nNum > aHelpLines.GetCount()) + nNum = aHelpLines.GetCount(); aHelpLines.Insert(rHL,nNum); if (GetView().IsHlplVisible()) ImpInvalidateHelpLineArea(nNum);