| commit | 4bdbb29a6b8d605d2a5fec1d080d386a95c183be | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Wed May 27 13:03:11 2020 +0100 |
| committer | Caolán McNamara <caolanm@redhat.com> | Wed May 27 21:26:04 2020 +0200 |
| tree | dd74748a618ea09ae3baeaff58f7e3953c75564d | |
| parent | 6ce45b3477f25b97d76c23ca645228001f0646d1 [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> (cherry picked from commit bcbbd77f42ac03bbe9d0754051b72e0faed20b11) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94954
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index c32c4f9..03da396 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); }