[Libreoffice-commits] core.git: sw/source

Jim Raykowski raykowj at gmail.com
Mon May 21 14:08:38 UTC 2018


 sw/source/core/crsr/crstrvl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 86d2efcaf3e66474e674f505fd6ca8062ba094cc
Author: Jim Raykowski <raykowj at gmail.com>
Date:   Wed May 9 18:23:33 2018 -0800

    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 at libreoffice.org>
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

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 );


More information about the Libreoffice-commits mailing list