diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-08 11:29:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-09 21:35:58 +0100 |
commit | c4052eaa4e2731ab68df0c0a1ce841dfa7c334e9 (patch) | |
tree | 4b82c0435e775bcaacccb7fc5cc702be97be7cc6 /svx/source/svdraw | |
parent | 9c3133fc335ff88adb1780f09d34f9907b1ccb8f (diff) |
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.mcnamara@collabora.com>
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r-- | svx/source/svdraw/svdedtv2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |