LCL: fixed range error for partial shown treeview items

git-svn-id: trunk@10927 -
This commit is contained in:
vincents 2007-04-10 08:10:59 +00:00
parent d090ceaad0
commit da3cabb3fd

View File

@ -4134,8 +4134,8 @@ begin
end else begin
PaintImages:=true;
end;
VertMid:=(NodeRect.Top+NodeRect.Bottom) shr 1;
//DebugLn('[TCustomTreeView.DoPaintNode] Node=',DbgS(Node),' Node.Text=',Node.Text,' NodeRect=',NodeRect.Left,',',NodeRect.Top,',',NodeRect.Right,',',NodeRect.Bottom,' VertMid=',VertMid);
VertMid:=(NodeRect.Top+NodeRect.Bottom) div 2;
//DebugLn(['[TCustomTreeView.DoPaintNode] Node=',DbgS(Node),' Node.Text=',Node.Text,' NodeRect=',NodeRect.Left,',',NodeRect.Top,',',NodeRect.Right,',',NodeRect.Bottom,' VertMid=',VertMid]);
with Canvas do begin
// draw background
if (tvoRowSelect in FOptions) and NodeSelected then