sd/source/ui/dlg/sdtreelb.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 469414e66f2b55c06439aaf062aa6dae66ef3096 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Sat Aug 6 20:47:13 2022 -0800 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Mon Aug 8 21:40:08 2022 +0200
tdf#138868 follow up: fix selected entry not unselected For Gtk3, setting the Navigator tree view cursor -1 doesn't unselect the selected entry which is what is wanted when the canvas selected object is not in the Navigator tree view. Change-Id: I879e8dc09870b91d42eadb6b42d9236c1a1cf40c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137916 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 1b49eccb6cc3..cd50e97c2682 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1207,7 +1207,10 @@ bool SdPageObjsTLV::SelectEntry(const SdrObject *pObj) } } if (!bFound) + { + m_xTreeView->unselect_all(); m_xTreeView->set_cursor(-1); + } return bFound; }