mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 00:22:01 +02:00
lcl: fix TCustomTreeView.GetInsertMarkAt
git-svn-id: trunk@19045 -
This commit is contained in:
parent
8fe1d7409b
commit
6dfc88f10b
@ -3401,9 +3401,10 @@ begin
|
||||
if Y<0 then Y:=0;
|
||||
if Y>=ClientHeight then Y:=ClientHeight-1;
|
||||
ANode:=GetNodeAtY(Y);
|
||||
NodeRect:=ANode.DisplayRect(false);
|
||||
NodeMidY:=(NodeRect.Top+NodeRect.Bottom) div 2;
|
||||
if ANode<>nil then begin
|
||||
if ANode<>nil then
|
||||
begin
|
||||
NodeRect:=ANode.DisplayRect(false);
|
||||
NodeMidY:=(NodeRect.Top+NodeRect.Bottom) div 2;
|
||||
AnInsertMarkNode:=ANode;
|
||||
if (X>AnInsertMarkNode.DisplayExpandSignRight) then
|
||||
if Y>=NodeMidY then begin
|
||||
|
Loading…
Reference in New Issue
Block a user