summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/templdlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-27 13:03:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-27 17:32:03 +0200
commitbcbbd77f42ac03bbe9d0754051b72e0faed20b11 (patch)
tree8d819f44e36bd463fbd6981a47a0cafb2742ef80 /sfx2/source/dialog/templdlg.cxx
parent9c36f071b10b591240dae4c36c27dc032e80688b (diff)
Related: tdf#133385 set cursor in row on right click
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 <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r--sfx2/source/dialog/templdlg.cxx1
1 files changed, 1 insertions, 0 deletions
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);
}