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

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 17 02:38:00 UTC 2019


 sw/source/uibase/uiview/viewmdi.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit f91603a983d4e109983d4f976786ac794e63e547
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Thu Apr 11 23:13:30 2019 -0800
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Wed Apr 17 04:37:14 2019 +0200

    tdf#115600 Turn design mode on to Navigate by Control
    
    Navigate by Control only works in design mode so turn design mode on
    when Navigate by Previous or Next Control button is pressed.
    
    Change-Id: I26a565758672c8dd1ec8bf979b199e8b240424e3
    Reviewed-on: https://gerrit.libreoffice.org/70644
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/sw/source/uibase/uiview/viewmdi.cxx b/sw/source/uibase/uiview/viewmdi.cxx
index bff30a24443d..dc6b53d2fc92 100644
--- a/sw/source/uibase/uiview/viewmdi.cxx
+++ b/sw/source/uibase/uiview/viewmdi.cxx
@@ -401,8 +401,11 @@ IMPL_LINK( SwView, MoveNavigationHdl, void*, p, void )
             }
         }
         break;
-        case NID_DRW :
         case NID_CTRL:
+            if (!rSh.GetView().IsDesignMode())
+                rSh.GetView().GetFormShell()->SetDesignMode(true);
+            [[fallthrough]];
+        case NID_DRW:
         {
             bool bSuccess = rSh.GotoObj(bNext,
                     m_nMoveType == NID_DRW ?


More information about the Libreoffice-commits mailing list