diff options
Diffstat (limited to 'sw/source/uibase/shells/listsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/listsh.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/listsh.cxx b/sw/source/uibase/shells/listsh.cxx index 1beb2bf489a9..a8d7eb91f8c7 100644 --- a/sw/source/uibase/shells/listsh.cxx +++ b/sw/source/uibase/shells/listsh.cxx @@ -60,12 +60,12 @@ static void lcl_OutlineUpDownWithSubPoints( SwWrtShell& rSh, bool bMove, bool bU { const IDocumentOutlineNodes* pIDoc( rSh.getIDocumentOutlineNodesAccess() ); const int nActLevel = pIDoc->getOutlineLevel( nActPos ); - SwOutlineNodes::size_type nActEndPos = nActPos + 1; SwOutlineNodes::difference_type nDir = 0; if ( !bUp ) { // Move down with subpoints: + SwOutlineNodes::size_type nActEndPos = nActPos + 1; while ( nActEndPos < pIDoc->getOutlineNodesCount() && (!pIDoc->isOutlineInLayout(nActEndPos, *rSh.GetLayout()) || nActLevel < pIDoc->getOutlineLevel(nActEndPos))) @@ -94,7 +94,6 @@ static void lcl_OutlineUpDownWithSubPoints( SwWrtShell& rSh, bool bMove, bool bU // Move up with subpoints: if ( nActPos > 0 ) { - nActEndPos = nActPos; SwOutlineNodes::size_type nDest = nActPos - 1; while (nDest > 0 && (!pIDoc->isOutlineInLayout(nDest, *rSh.GetLayout()) |