mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 00:11:51 +02:00
lcl: fix occasional error with drawing state image in treeview
git-svn-id: trunk@19472 -
This commit is contained in:
parent
0695261700
commit
fbfa82a616
@ -4472,7 +4472,7 @@ begin
|
||||
if (StateImages<>nil) and PaintImages then
|
||||
begin
|
||||
if (Node.StateIndex >= 0) and (Node.StateIndex < StateImages.Count) then
|
||||
StateImages.Draw(Canvas, x + 1, (NodeRect.Top + NodeRect.Bottom - StateImages.Height),
|
||||
StateImages.Draw(Canvas, x + 1, (NodeRect.Top + NodeRect.Bottom - StateImages.Height) div 2,
|
||||
Node.StateIndex, True);
|
||||
inc(x, StateImages.Width + 2);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user