summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-26 16:37:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-26 20:23:34 +0200
commitef9ac1b9874ccd1f1df16e9eeb53f9453311337e (patch)
treeb65ffd0f849c9a22bba887ab9f62c40c3c86f3bf /cui
parent7bd3f4a0724b11c18d45937078e8c2968e2b6d7f (diff)
make highlight of get_dest_row_at_pos optional
Change-Id: I280e1a49e938f45402f373896669fd6f7e8a66fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94876 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/SvxMenuConfigPage.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/customize/SvxMenuConfigPage.cxx b/cui/source/customize/SvxMenuConfigPage.cxx
index 064a0d508f8c..a0c6d316a0e5 100644
--- a/cui/source/customize/SvxMenuConfigPage.cxx
+++ b/cui/source/customize/SvxMenuConfigPage.cxx
@@ -528,9 +528,9 @@ IMPL_LINK( SvxMenuConfigPage, ContentContextMenuHdl, const CommandEvent&, rCEvt,
weld::TreeView& rTreeView = m_xContentsListBox->get_widget();
// Select clicked entry
- std::unique_ptr<weld::TreeIter> rIter(rTreeView.make_iterator());
- rTreeView.get_dest_row_at_pos( rCEvt.GetMousePosPixel(), &*rIter );
- rTreeView.select(*rIter);
+ std::unique_ptr<weld::TreeIter> xIter(rTreeView.make_iterator());
+ rTreeView.get_dest_row_at_pos( rCEvt.GetMousePosPixel(), xIter.get(), false );
+ rTreeView.select(*xIter);
SelectMenuEntry( rTreeView );
int nSelectIndex = m_xContentsListBox->get_selected_index();
@@ -571,9 +571,9 @@ IMPL_LINK( SvxMenuConfigPage, FunctionContextMenuHdl, const CommandEvent&, rCEvt
weld::TreeView& rTreeView = m_xFunctions->get_widget();
// Select clicked entry
- std::unique_ptr<weld::TreeIter> rIter(rTreeView.make_iterator());
- rTreeView.get_dest_row_at_pos( rCEvt.GetMousePosPixel(), &*rIter );
- rTreeView.select(*rIter);
+ std::unique_ptr<weld::TreeIter> xIter(rTreeView.make_iterator());
+ rTreeView.get_dest_row_at_pos( rCEvt.GetMousePosPixel(), xIter.get(), false );
+ rTreeView.select(*xIter);
SelectFunctionHdl( rTreeView );
std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder( &rTreeView, "cui/ui/entrycontextmenu.ui" ) );