summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2019-04-11 23:13:30 -0800
committerJim Raykowski <raykowj@gmail.com>2019-04-17 04:37:14 +0200
commitf91603a983d4e109983d4f976786ac794e63e547 (patch)
tree0e678ce44348dd9de9374285df7d1c743d19be15
parent976ad787b5243d3365a829cb0ddd2f4e8eddd0c6 (diff)
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@gmail.com>
-rw-r--r--sw/source/uibase/uiview/viewmdi.cxx5
1 files changed, 4 insertions, 1 deletions
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 ?