diff options
author | Jim Raykowski <raykowj@gmail.com> | 2018-05-09 18:23:33 -0800 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-05-21 16:08:16 +0200 |
commit | 86d2efcaf3e66474e674f505fd6ca8062ba094cc (patch) | |
tree | eaf3bbd15a7a253fec437d150ef84dc157b384d4 /sw | |
parent | d5bb7db998c4c629ec61b9475c86c130e57787f3 (diff) |
fix navigate by previous headings does not wrap when cursor position
...is before first heading
unreported bug fix for a patch I made for tdf#115600
Change-Id: I7ccaad387c5ea344cda71d3cc1f185e590a1f586
Reviewed-on: https://gerrit.libreoffice.org/54059
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/crstrvl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx index 3864b07e9cf5..63690c02c182 100644 --- a/sw/source/core/crsr/crstrvl.cxx +++ b/sw/source/core/crsr/crstrvl.cxx @@ -992,7 +992,8 @@ bool SwCursorShell::GotoPrevOutline() SwNode* pNd = &(pCursor->GetNode()); SwOutlineNodes::size_type nPos; bool bRet = false; - if ( rNds.GetOutLineNds().Seek_Entry(pNd, &nPos) && nPos == 0 ) + rNds.GetOutLineNds().Seek_Entry(pNd, &nPos); + if ( nPos == 0 ) { nPos = rNds.GetOutLineNds().size(); SvxSearchDialogWrapper::SetSearchLabel( SearchLabel::StartWrapped ); |