sw/source/ui/misc/outline.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 848ff3ffadf6f366ca952af15e6b770ad6a167dc Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Sep 17 10:55:12 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Sep 17 20:31:54 2024 +0200 cid#1607992 silence Overflowed constant Change-Id: Ib5ceaa4f8f42c897dba8f941e4b094d9f522b3bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173555 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index 2249dba318b0..92bfbbeaab88 100644 --- a/sw/source/ui/misc/outline.cxx +++ b/sw/source/ui/misc/outline.cxx @@ -276,9 +276,9 @@ IMPL_LINK(SwOutlineTabDialog, MenuSelectHdl, const OUString&, rIdent, void) return; } - if( nLevelNo-- ) + if (nLevelNo > 0) { - const SwNumRulesWithName *pRules = m_pChapterNumRules->GetRules( nLevelNo ); + const SwNumRulesWithName *pRules = m_pChapterNumRules->GetRules(nLevelNo - 1); if( pRules ) { pRules->ResetNumRule(m_rWrtSh, *m_xNumRule);