From bcbbd77f42ac03bbe9d0754051b72e0faed20b11 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 27 May 2020 13:03:11 +0100 Subject: Related: tdf#133385 set cursor in row on right click MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if the target row is not already selected Change-Id: I7cb39118f4a695546d8d2251390d6d3279e82bc3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94947 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sfx2/source/dialog/templdlg.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sfx2/source') diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index c32c4f9e639b..03da396a51b5 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -339,6 +339,7 @@ void SfxCommonTemplateDialog_Impl::PrepareMenu(const Point& rPos) if (pTreeView->get_dest_row_at_pos(rPos, xIter.get(), false) && !pTreeView->is_selected(*xIter)) { pTreeView->unselect_all(); + pTreeView->set_cursor(*xIter); pTreeView->select(*xIter); FmtSelectHdl(*pTreeView); } -- cgit