mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 11:10:23 +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
|
if (StateImages<>nil) and PaintImages then
|
||||||
begin
|
begin
|
||||||
if (Node.StateIndex >= 0) and (Node.StateIndex < StateImages.Count) then
|
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);
|
Node.StateIndex, True);
|
||||||
inc(x, StateImages.Width + 2);
|
inc(x, StateImages.Width + 2);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user