lcl: fix TCustomTreeView.GetInsertMarkAt

git-svn-id: trunk@19045 -
This commit is contained in:
paul 2009-03-20 17:17:00 +00:00
parent 8fe1d7409b
commit 6dfc88f10b

View File

@ -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