Kaydet (Commit) 86d2efca authored tarafından Jim Raykowski's avatar Jim Raykowski Kaydeden (comit) Thorsten Behrens

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/54059Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst d5bb7db9
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment