summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-06-03 11:31:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-06-03 20:19:37 +0200
commit110773847413242705dc6e2da2e05d5e02d5c155 (patch)
tree1d30a14f70d680b573679e8fbc09690b8828092e
parent04e534745d7c739d67fd85a0f9cf2c448a344f35 (diff)
skip unselectable entries
Change-Id: I55b7d64f84e2a5b7ab2e1ee8ce6a2f22440b9cfe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95445 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/treelist/svimpbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index dff21f931e5f..1794e7ca130a 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -2076,7 +2076,7 @@ void SvImpLBox::MouseMove( const MouseEvent& rMEvt)
if ( !MouseMoveCheckCtrl( rMEvt, pEntry ) && ( m_aSelEng.GetSelectionMode() != SelectionMode::NONE ) )
{
m_aSelEng.SelMouseMove(rMEvt);
- if (m_pView->mbHoverSelection && !m_pView->IsSelected(pEntry))
+ if (m_pView->mbHoverSelection && !m_pView->IsSelected(pEntry) && IsSelectable(pEntry))
m_pView->Select(pEntry);
}
}