basctl/source/basicide/layout.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4cbf139c638d792e9400881b21d91e8102be71af
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Sep 17 10:47:44 2024 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue Sep 17 18:42:27 2024 +0200

    cid#1608157 silence Overflowed constant
    
    Change-Id: Ie19c388b983800b514ed3b309955968eccd24efb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173550
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/basctl/source/basicide/layout.cxx 
b/basctl/source/basicide/layout.cxx
index e6b6676ed6c6..91e47d863ba9 100644
--- a/basctl/source/basicide/layout.cxx
+++ b/basctl/source/basicide/layout.cxx
@@ -357,7 +357,7 @@ void Layout::SplittedSide::ArrangeIn (tools::Rectangle 
const& rRect)
         aSize.AdjustWidth( nLength - rItem.nEndPos );
     rItem.pWin->ResizeIfDocking(aSize);
     // and hiding the split line after the window
-    if (iLastWin < vItems.size() - 1)
+    if (iLastWin + 1 < vItems.size())
         vItems[iLastWin + 1].pSplit->Hide();
 }
 

Reply via email to