sw/source/uibase/shells/listsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ece47db81680e8e99bbaa62605f9a7e3e4b38bef Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Nov 30 21:08:03 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Dec 1 15:36:19 2024 +0100 make this a little more readable Change-Id: I922b150f2c1682ec48331319bbf6222482c6cd3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177595 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/uibase/shells/listsh.cxx b/sw/source/uibase/shells/listsh.cxx index 45ec7c6df6c4..3c7d3466ce3e 100644 --- a/sw/source/uibase/shells/listsh.cxx +++ b/sw/source/uibase/shells/listsh.cxx @@ -52,7 +52,7 @@ void SwListShell::InitInterface_Impl() static void lcl_OutlineUpDownWithSubPoints( SwWrtShell& rSh, bool bMove, bool bUp ) { const SwOutlineNodes::size_type nActPos = rSh.GetOutlinePos(); - if ( !(nActPos < SwOutlineNodes::npos && rSh.IsOutlineMovable( nActPos )) ) + if (nActPos == SwOutlineNodes::npos || !rSh.IsOutlineMovable(nActPos)) return; rSh.Push();