summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-17 10:47:44 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-17 18:42:27 +0200
commit4cbf139c638d792e9400881b21d91e8102be71af (patch)
treebe0d96c152915511bf39b8bf9ddc37aad6e48bce
parentc69ad797408fd93afec2c5ac47ba94eba5e4c81c (diff)
cid#1608157 silence Overflowed constant
Change-Id: Ie19c388b983800b514ed3b309955968eccd24efb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173550 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--basctl/source/basicide/layout.cxx2
1 files changed, 1 insertions, 1 deletions
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();
}