[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 6 19:42:11 UTC 2020
vcl/source/treelist/svimpbox.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 11b1598811d5293de9ed2e9a75d597318af18f94
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Aug 6 14:24:31 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Aug 6 21:41:30 2020 +0200
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 at redhat.com>
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);
More information about the Libreoffice-commits
mailing list