summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-06 14:24:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-06 21:41:30 +0200
commit11b1598811d5293de9ed2e9a75d597318af18f94 (patch)
tree1ffd76cd81172bbd4526290c1f65def9fa8c6969 /vcl
parentad99b6cb2de7eb91554c224540daef03027beaa9 (diff)
for hover-select require mouse to be really over the row
Change-Id: I67f7e30f87555df8094625e0de3679b0215feb50 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100254 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/svimpbox.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 068a2d46250a..6e782614a105 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -2067,6 +2067,10 @@ void SvImpLBox::MouseMove( const MouseEvent& rMEvt)
if (m_pView->mbHoverSelection)
{
if (aPos.X() < 0 || aPos.Y() < 0 || aPos.X() > m_aOutputSize.Width() || aPos.Y() > m_aOutputSize.Height())
+ pEntry = nullptr;
+ else
+ pEntry = GetEntry(aPos);
+ if (!pEntry)
m_pView->SelectAll(false);
else if (!m_pView->IsSelected(pEntry) && IsSelectable(pEntry))
m_pView->Select(pEntry);