diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-17 10:47:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-17 18:42:27 +0200 |
commit | 4cbf139c638d792e9400881b21d91e8102be71af (patch) | |
tree | be0d96c152915511bf39b8bf9ddc37aad6e48bce | |
parent | c69ad797408fd93afec2c5ac47ba94eba5e4c81c (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.cxx | 2 |
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(); } |