mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:59:16 +02:00
LCL: fixed range error for partial shown treeview items
git-svn-id: trunk@10927 -
This commit is contained in:
parent
d090ceaad0
commit
da3cabb3fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user