[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 27 15:32:56 UTC 2020
sfx2/source/dialog/templdlg.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit bcbbd77f42ac03bbe9d0754051b72e0faed20b11
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed May 27 13:03:11 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed May 27 17:32:03 2020 +0200
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 at redhat.com>
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);
}
More information about the Libreoffice-commits
mailing list