From c4052eaa4e2731ab68df0c0a1ce841dfa7c334e9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 8 Nov 2024 11:29:52 +0000 Subject: cid#1607142 Overflowed constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I840fbf1b472dbf0a41dc9032e4e75839dec8dc2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176314 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- svx/source/svdraw/svdedtv2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/svdraw') 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=nObjNumnMin; + m_bToTopPossible = nObjNum+1 < nMax; + m_bToBtmPossible = nObjNum > nMin; } else { // multiple selection SdrObjList* pOL0=nullptr; size_t nPos0 = 0; -- cgit v1.2.3