lcl: don't allow intersection of tree lines with expand sign

git-svn-id: trunk@24843 -
This commit is contained in:
paul 2010-04-23 02:36:11 +00:00
parent 41021392cb
commit b60d60f7b6

View File

@ -4286,6 +4286,17 @@ var
if (CurNode.GetNextSibling <> nil) then
begin
// draw vertical line to next brother
if (CurNode = Node) and HasExpandSign then
begin
if (Node.Parent = nil) and (Node.GetPrevSibling = nil) then
DrawVertLine(CurMid, VertMid + FExpandSignSize div 2, NodeRect.Bottom)
else
begin
DrawVertLine(CurMid, NodeRect.Top, Max(NodeRect.Top, VertMid - FExpandSignSize div 2));
DrawVertLine(CurMid, VertMid + FExpandSignSize div 2, NodeRect.Bottom - 1);
end;
end
else
if (Node.Parent = nil) and (Node.GetPrevSibling = nil) then
DrawVertLine(CurMid, VertMid, NodeRect.Bottom)
else