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

Jim Raykowski raykowj at gmail.com
Wed Jun 13 07:11:43 UTC 2018


 sw/source/uibase/uiview/viewmdi.cxx |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

New commits:
commit 215e5adf4977a175bb8cc89dcbd48ef443ac8f10
Author: Jim Raykowski <raykowj at gmail.com>
Date:   Sun May 13 08:30:15 2018 -0800

    tdf#117553 Change navigate behavior when in footnote frame
    
    This patch changes navigate behavior to move to prev/next footnote text
    when in footnote frame.
    
    Change-Id: If206098d8817b74ab484a1039371c058d321fda2
    Reviewed-on: https://gerrit.libreoffice.org/54195
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/source/uibase/uiview/viewmdi.cxx b/sw/source/uibase/uiview/viewmdi.cxx
index 5038bae46bf8..7bd549d0f7d2 100644
--- a/sw/source/uibase/uiview/viewmdi.cxx
+++ b/sw/source/uibase/uiview/viewmdi.cxx
@@ -391,10 +391,26 @@ IMPL_LINK( SwView, MoveNavigationHdl, void*, p, void )
             bNext ? rSh.GoNextCursor() : rSh.GoPrevCursor();
         break;
         case NID_FTN:
+        {
+            bool bFrameTypeFootnote(rSh.GetFrameType(nullptr, false) & FrameTypeFlags::FOOTNOTE);
+
+            if (bFrameTypeFootnote)
+            {
+                rSh.LockView(true);
+                rSh.GotoFootnoteAnchor();
+            }
+
             rSh.EnterStdMode();
             bNext ?
                 rSh.GotoNextFootnoteAnchor() :
                     rSh.GotoPrevFootnoteAnchor();
+
+            if (bFrameTypeFootnote)
+            {
+                rSh.LockView(false);
+                rSh.GotoFootnoteText();
+            }
+        }
         break;
         case NID_MARK:
         {


More information about the Libreoffice-commits mailing list