tdf#115817 set standard mode before recency navigation
commitcf98f078b0a4e8c36cf0579042442e5583013608
authorJim Raykowski <raykowj@gmail.com>
Mon, 18 Jan 2021 01:16:10 +0000 (17 16:16 -0900)
committerJim Raykowski <raykowj@gmail.com>
Mon, 18 Jan 2021 03:49:10 +0000 (18 04:49 +0100)
treeeb5bb1f32b89c4158cd3d1374fc6b1379727b2f9
parent0da5e6f38aedb1fb873d1a90c506f6ab03ab1656
tdf#115817 set standard mode before recency navigation

Using Navigate-by to move through the recency stack sets the writer
shell to standard mode before navigation. Navigation using the Back and
Forward navigation controls does not. This results in incorrect
behaviour when a drawing object is selected and navigation is attempted.

This patch sets writer shell to standard mode before recency navigation
is done using .uno:NavigateBack and .uno:NavigateForward.

Change-Id: If05883e8188452736cfedac9153bcc91422bf7e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109504
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
sw/source/uibase/shells/navsh.cxx
sw/source/uibase/wrtsh/navmgr.cxx