svx/source/svdraw/svdedtv2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c4052eaa4e2731ab68df0c0a1ce841dfa7c334e9 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Nov 8 11:29:52 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat Nov 9 21:35:58 2024 +0100 cid#1607142 Overflowed constant Change-Id: I840fbf1b472dbf0a41dc9032e4e75839dec8dc2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176314 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx index 912e145cef62..1dbc7afd83f1 100644 --- a/svx/source/svdraw/svdedtv2.cxx +++ b/svx/source/svdraw/svdedtv2.cxx @@ -515,8 +515,8 @@ void SdrEditView::ImpCheckToTopBtmPossible() const size_t nRestrict=pRestrict->GetOrdNum(); if (nRestrict>nMin) nMin=nRestrict; } - m_bToTopPossible=nObjNum<nMax-1; - m_bToBtmPossible=nObjNum>nMin; + m_bToTopPossible = nObjNum+1 < nMax; + m_bToBtmPossible = nObjNum > nMin; } else { // multiple selection SdrObjList* pOL0=nullptr; size_t nPos0 = 0;