summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-06-17 16:47:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-06-17 22:15:48 +0200
commit8c74d9b30aacec2207dd6c7960c81280c79e2c31 (patch)
treed3c3fab2b548c574b2aefb093f1de411725f4bc6 /vcl/inc
parent65cc604f68963705baca6906daa1b264b657e5a2 (diff)
ignore positions on top of scrollbars for GetTargetAtPoint
Change-Id: I6d63ac3723b392e7c82836ea5d4455ebde8a8e08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96553 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/treeglue.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/treeglue.hxx b/vcl/inc/treeglue.hxx
index 11c61944f5e1..ea643635faee 100644
--- a/vcl/inc/treeglue.hxx
+++ b/vcl/inc/treeglue.hxx
@@ -130,7 +130,7 @@ public:
SvTreeListEntry* GetTargetAtPoint(const Point& rPos, bool bHighLightTarget)
{
SvTreeListEntry* pOldTargetEntry = pTargetEntry;
- pTargetEntry = pImpl->GetEntry(rPos);
+ pTargetEntry = PosOverBody(rPos) ? pImpl->GetEntry(rPos) : nullptr;
if (pOldTargetEntry != pTargetEntry)
ImplShowTargetEmphasis(pOldTargetEntry, false);