diff options
author | Jim Raykowski <raykowj@gmail.com> | 2022-05-28 23:13:28 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2022-08-01 05:59:51 +0200 |
commit | c4fa91bf5b64e052d22d910097f2aca270fb86dc (patch) | |
tree | 9412daaae20a9341831fead419b38667d3b7775b /sd/source/ui/docshell | |
parent | 74918534ee4243d2849f74c4eaf91eb610999413 (diff) |
tdf#138868 SdNavigator: track object selected on canvas
Change-Id: Ie28d0ee9482d0bcb4a0a8803e499af3bc0e816d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135084
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sd/source/ui/docshell')
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index efc3d1bd97cd..13b08deafa1a 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -836,12 +836,14 @@ void DrawDocShell::GotoBookmark(std::u16string_view rBookmark) pDrawViewShell->SwitchPage(nSdPgNum); } + // Do UnmarkAll here to stop the Navigator from reselecting the previously marked + // entry when a slide entry is selected. + pDrawViewShell->GetView()->UnmarkAll(); if (pObj != nullptr) { // show and select object if (vcl::Window* pWindow = pDrawViewShell->GetActiveWindow()) pDrawViewShell->MakeVisible(pObj->GetSnapRect(), *pWindow); - pDrawViewShell->GetView()->UnmarkAll(); pDrawViewShell->GetView()->MarkObj( pObj, pDrawViewShell->GetView()->GetSdrPageView()); |